Esempio n. 1
0
 public FeedWriter(IFeedDefinition <T> definition, ILinkSource <T> links, IUrlRegistry urls, IOutputWriter writer)
 {
     _definition = definition;
     _links      = links;
     _urls       = urls;
     _writer     = writer;
 }
Esempio n. 2
0
 public FeedWriter(IFeedSource <T> feedSource, IFeedDefinition <T> definition, ILinkSource <T> links,
                   IUrlRegistry urls)
 {
     _feedSource = feedSource;
     _definition = definition;
     _links      = links;
     _urls       = urls;
 }
Esempio n. 3
0
        // IFeedSource<T>
        public FeedWriterNode(IFeedDefinition <T> feed, FeedSourceType sourceType, Type modelType)
        {
            _feed          = feed;
            FeedSourceType = sourceType == Atom.FeedSourceType.direct
                                 ? typeof(DirectFeedSource <,>).MakeGenericType(modelType, typeof(T))
                                 : typeof(EnumerableFeedSource <,>).MakeGenericType(modelType, typeof(T));

            InputType = modelType;
        }
        public void SetUp()
        {
            theFeed       = new Feed <ItemSubject>();
            theDefinition = theFeed.As <IFeedDefinition <ItemSubject> >();

            theSyndicationFeed = new SyndicationFeed();

            aSyndicationItem = new SyndicationItem();

            theUrls = new ValidStubUrlRegistry();
        }
        public FeedWriterNode(IFeedDefinition <T> feed, Type modelType)
        {
            _feed = feed;

            InputType = modelType;
        }