Пример #1
0
        public void configure_item_when_using_an_externally_defined_feed_item()
        {
            theFeed.UseItems <ItemSubjectMap>();
            var values = new SimpleValues <ItemSubject>(new ItemSubject()
            {
                Title = "Something"
            });

            theDefinition.ConfigureItem(aSyndicationItem, values);

            aSyndicationItem.Title.Text.ShouldEqual("Something");
        }
Пример #2
0
        private SyndicationItem buildItem(IValues <T> values)
        {
            var item = new SyndicationItem();

            _definition.ConfigureItem(item, values);

            addLinksForItem(item, values);

            return(item);
        }