Esempio n. 1
0
        public void TestSearchShouldReturnResult()
        {
            var service = new RecipeApiService();
            var result  = service.SearchAsync("").Result;

            Assert.NotNull(result);
            Assert.NotEmpty(result.recipes);
            Assert.True(result.count > 0);
        }
Esempio n. 2
0
        static void TestGetShouldReturnResult()
        {
            var service = new RecipeApiService();
            var result  = service.SearchAsync("").Result;

            if (result.count > 0)
            {
                var recipe = service.GetAsync(result.recipes[0].id).Result;
            }
        }