public async Task HackerNewsApiService_FetchNewestStoryIds_FetchStoriesForValidUrl() { var storyIds = await _hackerNewsApiService.FetchNewestStoryIds(); Assert.IsTrue(storyIds.Any()); }
public async Task HackerNewsApiService_FetchNewestStoryIds_FetchStoriesForInvalidUrl() { _hackerNewsApiService = new HackerNewsApiService(new HttpClient(), ConfigurationHelper.GetBadTestConfiguration()); var stories = await _hackerNewsApiService.FetchNewestStoryIds(); }
public async Task HackerNewsApiService_FetchNewestStoryIds_EmptyApiUrl() { _hackerNewsApiService = new HackerNewsApiService(new HttpClient(), ConfigurationHelper.GetEmptyConfiguration()); await _hackerNewsApiService.FetchNewestStoryIds(); }