// See https://aka.ms/new-console-template for more information using ConsoleApp; using ConsoleApp.Menu; using Model; using System.Text; Console.WriteLine("Hello, World!\n\n"); // TESTS: Stub stub = new Stub(); List recipes = stub.LoadRecipes(); List recipeCollections = stub.LoadRecipeCollection(); RecipeCollection? allRecipe = recipeCollections.Find(x => x.Description.Equals("All")); if (allRecipe == null) throw new ArgumentException("Load AllRecipe in stub: can't find 'All'."); DataManager dataMgr = new DataManager(allRecipe); MenuManager menuMgr = new MenuManager(dataMgr, new SearcherRecipe(dataMgr.AllRecipes)); menuMgr.Loop(); // press any key to quit Console.ReadKey();