Пример #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);
        }
Пример #2
0
        public void MapModelToBO()
        {
            var mapper = new BOLFeedMapper();
            ApiFeedRequestModel model = new ApiFeedRequestModel();

            model.SetProperties("A", "A", "A", "A");
            BOFeed response = mapper.MapModelToBO("A", model);

            response.FeedType.Should().Be("A");
            response.FeedUri.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
        }
Пример #3
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");
        }