Ejemplo n.º 1
0
        public void GetAllDogBreeds()
        {
            var results = Task.Run(async() => await Method.Get("https://dog.ceo/api/breeds/list/all")).Result;

            Assert.IsTrue(!String.IsNullOrEmpty(results), "no results returned");
            JsonUtil.GetChildNode(results, "message", "retriever");

            Assert.IsTrue(JsonUtil.CheckChildNode(results, "message", "retriever"), "Sub breed retriever is not on the list");
        }