public void MapEFToBO() { var mapper = new DALPostHistoryTypeMapper(); PostHistoryType entity = new PostHistoryType(); entity.SetProperties(1, "A"); BOPostHistoryType response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Type.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALPostHistoryTypeMapper(); var bo = new BOPostHistoryType(); bo.SetProperties(1, "A"); PostHistoryType response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Type.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALPostHistoryTypeMapper(); PostHistoryType entity = new PostHistoryType(); entity.SetProperties(1, "A"); List <BOPostHistoryType> response = mapper.MapEFToBO(new List <PostHistoryType>() { entity }); response.Count.Should().Be(1); }