public void MapBOToModelList() { var mapper = new BOLDashboardConfigurationMapper(); BODashboardConfiguration bo = new BODashboardConfiguration(); bo.SetProperties("A", "A", "A", "A", "A", "A"); List <ApiDashboardConfigurationResponseModel> response = mapper.MapBOToModel(new List <BODashboardConfiguration>() { { bo } }); response.Count.Should().Be(1); }
public void MapModelToBO() { var mapper = new BOLDashboardConfigurationMapper(); ApiDashboardConfigurationRequestModel model = new ApiDashboardConfigurationRequestModel(); model.SetProperties("A", "A", "A", "A", "A"); BODashboardConfiguration response = mapper.MapModelToBO("A", model); 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"); }
public void MapBOToModel() { var mapper = new BOLDashboardConfigurationMapper(); BODashboardConfiguration bo = new BODashboardConfiguration(); bo.SetProperties("A", "A", "A", "A", "A", "A"); ApiDashboardConfigurationResponseModel response = mapper.MapBOToModel(bo); 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"); }
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"); }
public void MapBOToEF() { var mapper = new DALDashboardConfigurationMapper(); var bo = new BODashboardConfiguration(); bo.SetProperties("A", "A", "A", "A", "A", "A"); DashboardConfiguration response = mapper.MapBOToEF(bo); 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"); }