示例#1
0
        public async Task TestGetRecipeTag()
        {
            using (var context = new MyRecipesContext(options))
            {
                RecipesController recipeController = new RecipesController(context, configuration);
                var result = await recipeController.GetTagsRecipe("");

                // Assert
                Assert.IsNotNull(result);
                Assert.IsInstanceOfType(result, typeof(List <Recipe>));
            }
        }