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)); }
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)); }
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))); }); }
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)); }
public async Task TestCollectionsExtrasAll() { await TestMethodsHelper.TestGetAll(Methods, combined => TMDbClient.GetCollectionAsync(IdHelper.BackToTheFutureCollection, combined), async collection => await Verify(collection)); }
public async Task TestPersonsExtrasAllAsync() { await TestMethodsHelper.TestGetAll(Methods, combined => TMDbClient.GetPersonAsync(IdHelper.FrankSinatra, combined), async person => await Verify(person)); }