public void MapEFToBOList() { var mapper = new DALFeedMapper(); Feed entity = new Feed(); entity.SetProperties("A", "A", "A", "A", "A"); List <BOFeed> response = mapper.MapEFToBO(new List <Feed>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALFeedMapper(); Feed entity = new Feed(); entity.SetProperties("A", "A", "A", "A", "A"); BOFeed response = mapper.MapEFToBO(entity); response.FeedType.Should().Be("A"); response.FeedUri.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }