Example #1
0
        public void GetCategoriesTestHappyPath()
        {
            var jsonFeed = new JsonFeed(nameGeneratorURL, 0);

            string[] categories = JsonFeed.GetCategories();

            Assert.IsTrue(categories.Length > 0);
        }
Example #2
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);
        }
Example #3
0
        public async Task <List <String> > GetCategories()
        {
            var feed = new JsonFeed("https://api.chucknorris.io/jokes/categories");

            return(await feed.GetCategories());
        }