Beispiel #1
0
        public void MapBOToModelList()
        {
            var    mapper = new BOLFeedMapper();
            BOFeed bo     = new BOFeed();

            bo.SetProperties("A", "A", "A", "A", "A");
            List <ApiFeedResponseModel> response = mapper.MapBOToModel(new List <BOFeed>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Beispiel #2
0
        public void MapBOToModel()
        {
            var    mapper = new BOLFeedMapper();
            BOFeed bo     = new BOFeed();

            bo.SetProperties("A", "A", "A", "A", "A");
            ApiFeedResponseModel response = mapper.MapBOToModel(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");
        }
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");
        }