Example #1
0
        public async Task GetTopRatedAsync_ValidId_ReturnsValidResult()
        {
            ITelevisionApi apiUnderTest = new TelevisionApi(_clientWithNoApiKey);

            TvShowList result = await apiUnderTest.GetTopRatedAsync(apiKey : _userApiKey);

            Assert.IsNotNull(result);
            Assert.IsNotEmpty(result.Results);
        }
Example #2
0
        public async Task SearchTVShowsAsync_FamousActor_ReturnResults(string tvShowName)
        {
            ITelevisionApi apiUnderTest = new TelevisionApi(_clientWithNoApiKey);

            TvShowList result = await apiUnderTest.SearchTVShowsAsync(tvShowName, apiKey : _userApiKey);

            Assert.IsNotNull(result);
            Assert.IsNotEmpty(result.Results);
        }
Example #3
0
        public async Task GetSimilarTVShowsAsync_ValidId_ReturnsValidResult(string id)
        {
            ITelevisionApi apiUnderTest = new TelevisionApi(_clientWithNoApiKey);

            TvShowList result = await apiUnderTest.GetSimilarTVShowsAsync(id, apiKey : _userApiKey);

            Assert.IsNotNull(result);
            Assert.IsNotEmpty(result.Results);
        }