Example #1
0
        public void AddItemsToListTest()
        {
            //Arrange
            MenuContent item = new MenuContent(4, "Komodo's Famous Burger", "Best Burger in Town", "Burger, bread, a fries", 9.99);

            //Act
            menuTest.AddItemsToList(item);
            int actual = menuTest.GetItemsList().Count;

            //Assert
            Assert.AreEqual(4, actual);
        }
Example #2
0
        private void DisplayAllItems()
        {
            Console.Clear();

            List <MenuContent> listofItems = _itemRepo.GetItemsList();

            foreach (MenuContent items in listofItems)
            {
                Console.WriteLine($"Meal Number: {items.MealNumber}\n" +
                                  $"Meal Name: {items.MealName}\n" +
                                  $"Description: {items.Description}\n" +
                                  $"List of Ingredients: {items.ListOfIngredients}\n" +
                                  $"Price: {items.Price}");
                Console.WriteLine();
            }
        }