public async Task GetPodcastEpisodesWithPagination() { var podcastEpisodesService = new PodcastEpisodesService(BaseUri, HttpClient); var firstPageOfPodcastEpisodes = await podcastEpisodesService.GetPodcastEpisodesAsync("devdiscuss", 1, 2); var secondPageOfPodcastEpisodes = await podcastEpisodesService.GetPodcastEpisodesAsync("devdiscuss", 2, 2); Assert.IsTrue(firstPageOfPodcastEpisodes.Any()); Assert.IsTrue(secondPageOfPodcastEpisodes.Any()); Assert.AreNotEqual(firstPageOfPodcastEpisodes.First().PodcastEpisodeId, secondPageOfPodcastEpisodes.First().PodcastEpisodeId); }
public async Task GetPodcastEpisodesByUser() { var podcastEpisodesService = new PodcastEpisodesService(BaseUri, HttpClient); var podcastEpisodes = await podcastEpisodesService.GetPodcastEpisodesAsync("devdiscuss"); Assert.IsNotNull(podcastEpisodes); }
public async Task GetPodcastEpisodes() { var podcastEpisodesService = new PodcastEpisodesService(BaseUri, HttpClient); var podcastEpisodes = await podcastEpisodesService.GetPodcastEpisodesAsync(); Assert.IsTrue(podcastEpisodes.Any()); }