Exemplo n.º 1
0
        private void SeedItemList()
        {
            MenuContent spaghetti = new MenuContent(1, "Spaghetti", "Pasta with chease, sauce and avocado", 50m, "pasta,chease,tomato,avocado");
            MenuContent hotDog    = new MenuContent(2, "Hotdog", "jucy traditional hotdog", 5m, "buns, meat,sauces,");

            _testRepo.AddItemToList(hotDog);
            _testRepo.AddItemToList(spaghetti);

            MenuContent avocado = new MenuContent("smashed avocados, 200 Calories ");

            _testRepo.AddIngredientsList(avocado);
        }
Exemplo n.º 2
0
        public void AddNewMenuItems()
        {
            Console.Clear();
            MenuContent newItem = new MenuContent();

            Console.WriteLine("Enter new meal reference number:");
            newItem.MealNumber = int.Parse(Console.ReadLine());
            Console.WriteLine("Enter new meal item name :");
            newItem.MealName = Console.ReadLine();
            Console.WriteLine("Enter new description for item:");
            newItem.Description = Console.ReadLine();
            Console.WriteLine("Enter new ingredients for item:");
            newItem.Ingredients = Console.ReadLine();
            Console.WriteLine("Enter new price for item:");
            newItem.Price = decimal.Parse(Console.ReadLine());

            _repoContent.AddItemToList(newItem);
            _repoContent.AddIngredientsList(newItem);
        }