public void MapEFToBO() { var mapper = new DALPenMapper(); Pen entity = new Pen(); entity.SetProperties(1, "A"); BOPen response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALPenMapper(); var bo = new BOPen(); bo.SetProperties(1, "A"); Pen response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALPenMapper(); Pen entity = new Pen(); entity.SetProperties(1, "A"); List <BOPen> response = mapper.MapEFToBO(new List <Pen>() { entity }); response.Count.Should().Be(1); }