//3 - Delete public void RemoveItemFromList() { Console.Clear(); DisplayAllMenuItems(); //get item Console.WriteLine("Enter the item number that you would like remove from the menu:"); int mealNumber = int.Parse(Console.ReadLine()); //call delete method bool wasDeleted = _cafeRepo.RemoveItemFromList(mealNumber); //was it deleted? if (wasDeleted) { Console.WriteLine("The content was successfully deleted"); } else { Console.WriteLine("The content could not be deleted"); } }
public void RemoveItemFromList_ShouldReturnTrue() { bool testTwo = _repo.RemoveItemFromList(6); Assert.IsTrue(testTwo); }