public void MapEFToBO() { var mapper = new DALPostHistoryTypesMapper(); PostHistoryTypes entity = new PostHistoryTypes(); entity.SetProperties(1, "A"); BOPostHistoryTypes response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Type.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALPostHistoryTypesMapper(); PostHistoryTypes entity = new PostHistoryTypes(); entity.SetProperties(1, "A"); List <BOPostHistoryTypes> response = mapper.MapEFToBO(new List <PostHistoryTypes>() { entity }); response.Count.Should().Be(1); }