public void MapEFToBOList() { var mapper = new DALDashboardConfigurationMapper(); DashboardConfiguration entity = new DashboardConfiguration(); entity.SetProperties("A", "A", "A", "A", "A", "A"); List <BODashboardConfiguration> response = mapper.MapEFToBO(new List <DashboardConfiguration>() { entity }); response.Count.Should().Be(1); }
public virtual DashboardConfiguration MapBOToEF( BODashboardConfiguration bo) { DashboardConfiguration efDashboardConfiguration = new DashboardConfiguration(); efDashboardConfiguration.SetProperties( bo.Id, bo.IncludedEnvironmentIds, bo.IncludedProjectIds, bo.IncludedTenantIds, bo.IncludedTenantTags, bo.JSON); return(efDashboardConfiguration); }
public void MapEFToBO() { var mapper = new DALDashboardConfigurationMapper(); DashboardConfiguration entity = new DashboardConfiguration(); entity.SetProperties("A", "A", "A", "A", "A", "A"); BODashboardConfiguration response = mapper.MapEFToBO(entity); response.Id.Should().Be("A"); response.IncludedEnvironmentIds.Should().Be("A"); response.IncludedProjectIds.Should().Be("A"); response.IncludedTenantIds.Should().Be("A"); response.IncludedTenantTags.Should().Be("A"); response.JSON.Should().Be("A"); }