示例#1
0
        // TODO: Can this and should this be unit tested?
        public IEnumerable<XElement> DownloadFeed()
        {
            var state = new DownloadFeedState();
            _downloadFeedSequence.Aggregate(state, (current, op) => op(current));

            return state.Elements;
        }
示例#2
0
        internal DownloadFeedState IssueWebRequest(DownloadFeedState state)
        {
            var options = CreateResourceAccessorOptions();

            state.FeedResponse = _resourceAccessor.GetResourceStream(
                new Location(PremiumFeedUrl, SiteCredentials.RussianCredentials),
                options);

            return state;
        }
示例#3
0
        internal static DownloadFeedState ConvertStreamToXml(DownloadFeedState state)
        {
            state.Elements = new PodcastFeedReader().GetPodcastItems(state.FeedResponse.Result);

            return state;
        }