public void MapEFToBO() { var mapper = new DALConfigurationMapper(); Configuration entity = new Configuration(); entity.SetProperties("A", "A"); BOConfiguration response = mapper.MapEFToBO(entity); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALConfigurationMapper(); Configuration entity = new Configuration(); entity.SetProperties("A", "A"); List <BOConfiguration> response = mapper.MapEFToBO(new List <Configuration>() { entity }); response.Count.Should().Be(1); }