public void AddOrder() { _contentRepo.AddOrderToList(_orderContent); int expected = 1; int actual = _contentRepo.GetOrderList().Count; Assert.AreEqual(expected, actual); }
public void DeleteOrder() { Cafe_Repo _contentRepo = new Cafe_Repo(); _contentRepo.AddOrderToList(_orderContent); bool wasDeleted = _contentRepo.DeleteOrder(_orderContent); Assert.IsTrue(wasDeleted); }
public void AddOrders() { Cafe_Menu content = new Cafe_Menu(); Console.Clear(); Console.WriteLine("Please enter the item number: "); content.MealNumber = int.Parse(Console.ReadLine()); Console.WriteLine("Please enter the name of the meal: "); content.MealName = Console.ReadLine(); Console.WriteLine($"Please enter description for {content.MealName}: "); content.Description = Console.ReadLine(); Console.WriteLine($"Please list the ingredients for {content.MealName}: "); Console.WriteLine($"Please enter the price for {content.MealName}: "); Console.Clear(); Console.WriteLine("Order Summary\n =" + "\n"); Console.WriteLine($"Meal Number: {content.MealNumber}\n" + $"Meal Name: {content.MealName}\n" + $"Description: {content.Description}\n" + $"Ingredient List: {content.Ingredients}\n" + $"Price: {content.MealPrice}"); Console.WriteLine("Your order was placed! \n" + "Press any key to continue."); Console.ReadKey(); _orderRepo.AddOrderToList(content); }