public void DeleteItem_ShouldGetTrue() { MenuItems item = _item; bool deleteResult = _repo.DeleteMenuItem(item); Assert.IsTrue(deleteResult); }
private void DeleteItem() { Console.Clear(); ViewMenu(); Console.WriteLine("Which item would you like to remove from the menu?"); bool wasDeleted = _repo.DeleteMenuItem(Console.ReadLine()); if (wasDeleted) { Console.WriteLine("The item was successfully deleted"); } else { Console.WriteLine("Item could not be deleted."); } }
public void DeleteItem_ShouldReturnTrue() { bool wasDeleted = _repo.DeleteMenuItem("Basic Burger combo"); Assert.IsTrue(wasDeleted); }