Beispiel #1
0
        // happy path
        public async Task WhenCalledOnRatedMovie_DeletesRating()
        {
            DeleteMovieRatingResult response = await _client.DeleteMovieRating(_settings.SessionId, mediaId : _movie, guestSessionId : null, retryCount : 0);

            _output.WriteLine($"TMDB server's response code {response.HttpStatusCode}");
            _output.WriteLine($"TMDB server's response {response.Json}");
            Assert.True(response.HttpStatusCode == System.Net.HttpStatusCode.OK);
        }
Beispiel #2
0
        // cleans the states of the movie apriory
        public async Task InitializeAsync()
        {
            await _client.DeleteMovieRating(_settings.SessionId, _movie);

            await _client.UpdateFavoriteList(_settings.SessionId, "movie", false, _movie);

            await _client.UpdateWatchlist(_settings.SessionId, "movie", false, _movie);

            await Task.Delay(500);
        }
 public async Task InitializeAsync()
 {
     await _client.DeleteMovieRating(_settings.SessionId, _movie);
 }