Beispiel #1
0
        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);
        }
Beispiel #2
0
        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");
        }
Beispiel #3
0
        public void MapBOToEF()
        {
            var mapper = new DALFeedMapper();
            var bo     = new BOFeed();

            bo.SetProperties("A", "A", "A", "A", "A");

            Feed response = mapper.MapBOToEF(bo);

            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");
        }