public void TryGetTopCharts_ShouldInvokePodcastChartsUnitTest(PodHead sut, IPodcastCharts podcastCharts, PodcastGenre podcastGenre, uint limit)
        {
            sut.SetField(typeof(IPodcastCharts), podcastCharts);
            bool success = sut.TryGetTopCharts(podcastGenre, out IEnumerable <PodcastFeed> podcasts, out string errors, limit);

            Assert.IsTrue(success);
            Assert.IsNull(errors);
            podcastCharts.Received(1).GetPodcasts(podcastGenre, limit);
        }
 public void GetTopCharts_ShouldInvokePodcastChartsUnitTest(PodHead sut, IPodcastCharts podcastCharts, PodcastGenre podcastGenre, uint limit)
 {
     sut.SetField(typeof(IPodcastCharts), podcastCharts);
     sut.GetTopCharts(podcastGenre, limit);
     podcastCharts.Received(1).GetPodcasts(podcastGenre, limit);
 }
Exemplo n.º 3
0
 public PodHead()
 {
     _parser        = new RssParser();
     _podcastCharts = new PodcastCharts(_parser);
     _podcastSearch = new PodcastSearch(_parser);
 }