예제 #1
0
        public async Task TestTvShowExtrasAllAsync()
        {
            await TMDbClient.SetSessionInformationAsync(TestConfig.UserSessionId, SessionType.UserSession);

            // Account states will only show up if we've done something
            await TMDbClient.TvShowSetRatingAsync(IdHelper.KeepingUpAppearances, 5);

            await TestMethodsHelper.TestGetAll(Methods, combined => TMDbClient.GetTvShowAsync(IdHelper.KeepingUpAppearances, combined), show => Verify(show));
        }
예제 #2
0
        public async Task TestTvSeasonExtrasAllAsync()
        {
            await TMDbClient.SetSessionInformationAsync(TestConfig.UserSessionId, SessionType.UserSession);

            // Account states will only show up if we've done something
            await TMDbClient.TvEpisodeSetRatingAsync(IdHelper.FullerHouse, 1, 1, 5);

            await TestMethodsHelper.TestGetAll(Methods, combined => TMDbClient.GetTvSeasonAsync(IdHelper.FullerHouse, 1, combined), season => Verify(season));
        }
예제 #3
0
        public async Task TestCompaniesExtrasAllAsync()
        {
            await TestMethodsHelper.TestGetAll(Methods, combined => TMDbClient.GetCompanyAsync(IdHelper.TwentiethCenturyFox, combined), async company =>
            {
                // Reduce testdata
                company.Movies.Results = company.Movies.Results.OrderBy(s => s.Id).Take(1).ToList();

                await Verify(company, settings => settings.IgnoreProperty(nameof(company.Movies.TotalPages), nameof(company.Movies.TotalResults)));
            });
        }
예제 #4
0
        public async Task TestMoviesImdbExtrasAllAsync()
        {
            Dictionary <MovieMethods, Func <Movie, object> > tmpMethods = new Dictionary <MovieMethods, Func <Movie, object> >(Methods);

            tmpMethods.Remove(MovieMethods.Videos);

            await TMDbClient.SetSessionInformationAsync(TestConfig.UserSessionId, SessionType.UserSession);

            // Account states will only show up if we've done something
            await TMDbClient.MovieSetRatingAsync(IdHelper.TheDarkKnightRises, 5);

            await TestMethodsHelper.TestGetAll(tmpMethods, combined => TMDbClient.GetMovieAsync(IdHelper.TheDarkKnightRisesImdb, combined), movie => Verify(movie));
        }
예제 #5
0
 public async Task TestCollectionsExtrasAll()
 {
     await TestMethodsHelper.TestGetAll(Methods, combined => TMDbClient.GetCollectionAsync(IdHelper.BackToTheFutureCollection, combined), async collection => await Verify(collection));
 }
예제 #6
0
 public async Task TestPersonsExtrasAllAsync()
 {
     await TestMethodsHelper.TestGetAll(Methods, combined => TMDbClient.GetPersonAsync(IdHelper.FrankSinatra, combined), async person => await Verify(person));
 }