public void ListOrders()
        {
            Console.Clear();

            List <Cafe_Menu> listOfOrders = _orderRepo.GetOrderList();

            foreach (Cafe_Menu content in listOfOrders)
            {
                Console.WriteLine($"#{content.MealNumber} {content.MealName}\n" +
                                  $"Description: {content.Description}\n" +
                                  $"Ingredients: {content.Ingredients}\n" +
                                  $"MealPrice: {content.MealPrice}\n");
            }
            Console.WriteLine("Press any key to continue.");
            Console.ReadKey();
            Console.ReadLine();
        }
Ejemplo n.º 2
0
        public void AddOrder()
        {
            _contentRepo.AddOrderToList(_orderContent);

            int expected = 1;
            int actual   = _contentRepo.GetOrderList().Count;

            Assert.AreEqual(expected, actual);
        }