Exemple #1
0
        public void SeedMenuItemList()
        {
            MenuContent komodoOmelette          = new MenuContent(1, "Komodo Omelette", "A two egg omelette served with a your choice of a side", "Eggs, steak, mushrooms, and swiss cheese", 7.45);
            MenuContent komodoChickenAndWaffles = new MenuContent(2, "Komodo Chicken and Waffles", "Pumpkin spice waffles and breaded chicken strips", "Waffles and chicken served with maple syrup", 9.50);
            MenuContent komodoBreakfastBurrito  = new MenuContent(3, "Komodo Breakfast Burrito", "A flour tortilla filled with two eggs, sausage, and mixed cheese served with a side", "Eggs, sausage, cheese, and choice of side", 10.50);

            menuTest.AddItemsToList(komodoOmelette);
            menuTest.AddItemsToList(komodoChickenAndWaffles);
            menuTest.AddItemsToList(komodoBreakfastBurrito);
        }
Exemple #2
0
        private void CreateNewMenuItem()
        {
            Console.Clear();
            MenuContent newItem = new MenuContent();

            //Meal Name
            Console.WriteLine("Enter the name of the new menu item");
            newItem.MealName = Console.ReadLine();
            Console.Clear();

            //Meal Number
            Console.WriteLine("Enter the meal number of the new menu item");
            string itemNumber = Console.ReadLine();

            newItem.MealNumber = int.Parse(itemNumber);
            Console.Clear();

            //Description
            Console.WriteLine("Enter the description of the menu item");
            newItem.Description = Console.ReadLine();
            Console.Clear();

            //List of Ingredients
            Console.WriteLine("Please list all of the ingredients of the new menu item");
            newItem.ListOfIngredients = Console.ReadLine();
            Console.Clear();

            //Price
            Console.WriteLine("What is the price of the item?");
            Console.Write("$");
            string itemPrice = Console.ReadLine();

            newItem.Price = decimal.Parse(itemPrice);
            Console.Clear();

            _itemRepo.AddItemsToList(newItem);
        }