public void MapBOToModelList() { var mapper = new BOLTenantVariableMapper(); BOTenantVariable bo = new BOTenantVariable(); bo.SetProperties("A", "A", "A", "A", "A", "A", "A"); List <ApiTenantVariableResponseModel> response = mapper.MapBOToModel(new List <BOTenantVariable>() { { bo } }); response.Count.Should().Be(1); }
public void MapModelToBO() { var mapper = new BOLTenantVariableMapper(); ApiTenantVariableRequestModel model = new ApiTenantVariableRequestModel(); model.SetProperties("A", "A", "A", "A", "A", "A"); BOTenantVariable response = mapper.MapModelToBO("A", model); response.EnvironmentId.Should().Be("A"); response.JSON.Should().Be("A"); response.OwnerId.Should().Be("A"); response.RelatedDocumentId.Should().Be("A"); response.TenantId.Should().Be("A"); response.VariableTemplateId.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLTenantVariableMapper(); BOTenantVariable bo = new BOTenantVariable(); bo.SetProperties("A", "A", "A", "A", "A", "A", "A"); ApiTenantVariableResponseModel response = mapper.MapBOToModel(bo); response.EnvironmentId.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.OwnerId.Should().Be("A"); response.RelatedDocumentId.Should().Be("A"); response.TenantId.Should().Be("A"); response.VariableTemplateId.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALTenantVariableMapper(); TenantVariable entity = new TenantVariable(); entity.SetProperties("A", "A", "A", "A", "A", "A", "A"); BOTenantVariable response = mapper.MapEFToBO(entity); response.EnvironmentId.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.OwnerId.Should().Be("A"); response.RelatedDocumentId.Should().Be("A"); response.TenantId.Should().Be("A"); response.VariableTemplateId.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALTenantVariableMapper(); var bo = new BOTenantVariable(); bo.SetProperties("A", "A", "A", "A", "A", "A", "A"); TenantVariable response = mapper.MapBOToEF(bo); response.EnvironmentId.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.OwnerId.Should().Be("A"); response.RelatedDocumentId.Should().Be("A"); response.TenantId.Should().Be("A"); response.VariableTemplateId.Should().Be("A"); }