//delete private void DeleteContentByNumber() { Console.Clear(); Console.WriteLine("Enter Item Name you want to delete by number."); int itemInput = Convert.ToInt32(Console.ReadLine()); MainFood existingContent = _repo.GetFoodByNumber(itemInput); if (existingContent == null) { Console.WriteLine("There isn't any items under that menu number.\n" + "Press any key to continue."); Console.ReadKey(); } else { Console.WriteLine("Your Item has been removed.\n" + "Press any key to continue."); Console.ReadKey(); } }
public void GetItemByNumber_ShouldReturnCorrectItem() { MainFood searchResult = _repo.GetFoodByNumber(1); Assert.AreEqual(_main, searchResult); }