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