// 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; }
internal DownloadFeedState IssueWebRequest(DownloadFeedState state) { var options = CreateResourceAccessorOptions(); state.FeedResponse = _resourceAccessor.GetResourceStream( new Location(PremiumFeedUrl, SiteCredentials.RussianCredentials), options); return state; }
internal static DownloadFeedState ConvertStreamToXml(DownloadFeedState state) { state.Elements = new PodcastFeedReader().GetPodcastItems(state.FeedResponse.Result); return state; }