public void GetCategoriesTestHappyPath() { var jsonFeed = new JsonFeed(nameGeneratorURL, 0); string[] categories = JsonFeed.GetCategories(); Assert.IsTrue(categories.Length > 0); }
public void GetCategories() { var request = new CategoryRequest(); var feed = new JsonFeed();// ("https://api.chucknorris.io");//, 1); request.Uri = "https://api.chucknorris.io"; var res = feed.GetCategories(request); Assert.IsNotNull(res); }
public async Task <List <String> > GetCategories() { var feed = new JsonFeed("https://api.chucknorris.io/jokes/categories"); return(await feed.GetCategories()); }