public async Task Test_TraktMoviesModule_GetMovieStatistics() { TraktClient client = TestUtility.GetMockClient(GET_MOVIE_STATISTICS_URI, MOVIE_STATISTICS_JSON); TraktResponse <ITraktStatistics> response = await client.Movies.GetMovieStatisticsAsync(MOVIE_ID); response.Should().NotBeNull(); response.IsSuccess.Should().BeTrue(); response.HasValue.Should().BeTrue(); ITraktStatistics responseValue = response.Value; responseValue.Watchers.Should().Be(40619); responseValue.Plays.Should().Be(64620); responseValue.Collectors.Should().Be(17519); responseValue.CollectedEpisodes.Should().NotHaveValue(); responseValue.Comments.Should().Be(99); responseValue.Lists.Should().Be(17089); responseValue.Votes.Should().Be(10359); }
public async Task Test_TraktShowsModule_GetShowStatistics() { TraktClient client = TestUtility.GetMockClient(GET_SHOW_STATISTICS_URI, SHOW_STATISTICS_JSON); TraktResponse <ITraktStatistics> response = await client.Shows.GetShowStatisticsAsync(SHOW_ID); response.Should().NotBeNull(); response.IsSuccess.Should().BeTrue(); response.HasValue.Should().BeTrue(); response.Value.Should().NotBeNull(); ITraktStatistics responseValue = response.Value; responseValue.Watchers.Should().Be(265955); responseValue.Plays.Should().Be(12491168); responseValue.Collectors.Should().Be(106028); responseValue.CollectedEpisodes.Should().Be(4092901); responseValue.Comments.Should().Be(233); responseValue.Lists.Should().Be(103943); responseValue.Votes.Should().Be(44590); }
public async Task Test_TraktSeasonsModule_GetSeasonStatistics() { TraktClient client = TestUtility.GetMockClient(GET_SEASON_STATISTICS_URI, SEASON_STATISTICS_JSON); TraktResponse <ITraktStatistics> response = await client.Seasons.GetSeasonStatisticsAsync(SHOW_ID, SEASON_NR); response.Should().NotBeNull(); response.IsSuccess.Should().BeTrue(); response.HasValue.Should().BeTrue(); response.Value.Should().NotBeNull(); ITraktStatistics responseValue = response.Value; responseValue.Watchers.Should().Be(232215); responseValue.Plays.Should().Be(2719701); responseValue.Collectors.Should().Be(91770); responseValue.CollectedEpisodes.Should().Be(907358); responseValue.Comments.Should().Be(6); responseValue.Lists.Should().Be(250); responseValue.Votes.Should().Be(1149); }
public async Task Test_TraktEpisodesModule_GetEpisodeStatistics() { TraktClient client = TestUtility.GetMockClient(GET_EPISODE_STATISTICS_URI, EPISODE_STATISTICS_JSON); TraktResponse <ITraktStatistics> response = await client.Episodes.GetEpisodeStatisticsAsync(SHOW_ID, SEASON_NR, EPISODE_NR); response.Should().NotBeNull(); response.IsSuccess.Should().BeTrue(); response.HasValue.Should().BeTrue(); response.Value.Should().NotBeNull(); ITraktStatistics responseValue = response.Value; responseValue.Watchers.Should().Be(233273); responseValue.Plays.Should().Be(303464); responseValue.Collectors.Should().Be(92759); responseValue.CollectedEpisodes.Should().NotHaveValue(); responseValue.Comments.Should().Be(4); responseValue.Lists.Should().Be(418); responseValue.Votes.Should().Be(3919); }