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); }
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); }
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); }