public FeedWriter(IFeedDefinition <T> definition, ILinkSource <T> links, IUrlRegistry urls, IOutputWriter writer) { _definition = definition; _links = links; _urls = urls; _writer = writer; }
public FeedWriter(IFeedSource <T> feedSource, IFeedDefinition <T> definition, ILinkSource <T> links, IUrlRegistry urls) { _feedSource = feedSource; _definition = definition; _links = links; _urls = urls; }
// 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; }