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 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 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"); }