public void MapEFToBO() { var mapper = new DALVPersonMapper(); VPerson entity = new VPerson(); entity.SetProperties(1, "A"); BOVPerson response = mapper.MapEFToBO(entity); response.PersonId.Should().Be(1); response.PersonName.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALVPersonMapper(); VPerson entity = new VPerson(); entity.SetProperties(1, "A"); List <BOVPerson> response = mapper.MapEFToBO(new List <VPerson>() { entity }); response.Count.Should().Be(1); }