public void MapModelToBO() { var mapper = new BOLExtensionConfigurationMapper(); ApiExtensionConfigurationRequestModel model = new ApiExtensionConfigurationRequestModel(); model.SetProperties("A", "A", "A"); BOExtensionConfiguration response = mapper.MapModelToBO("A", model); response.ExtensionAuthor.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLExtensionConfigurationMapper(); BOExtensionConfiguration bo = new BOExtensionConfiguration(); bo.SetProperties("A", "A", "A", "A"); List <ApiExtensionConfigurationResponseModel> response = mapper.MapBOToModel(new List <BOExtensionConfiguration>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLExtensionConfigurationMapper(); BOExtensionConfiguration bo = new BOExtensionConfiguration(); bo.SetProperties("A", "A", "A", "A"); ApiExtensionConfigurationResponseModel response = mapper.MapBOToModel(bo); response.ExtensionAuthor.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALExtensionConfigurationMapper(); ExtensionConfiguration entity = new ExtensionConfiguration(); entity.SetProperties("A", "A", "A", "A"); BOExtensionConfiguration response = mapper.MapEFToBO(entity); response.ExtensionAuthor.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALExtensionConfigurationMapper(); var bo = new BOExtensionConfiguration(); bo.SetProperties("A", "A", "A", "A"); ExtensionConfiguration response = mapper.MapBOToEF(bo); response.ExtensionAuthor.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }