private void RemoveIngredientFromList() { Console.Clear(); GetIngredients(); Console.WriteLine("Which ingredient would you like to remove:"); string input = Console.ReadLine(); bool wasDeleted = _iRepo.RemoveIngredient(input); if (wasDeleted == true) { Console.WriteLine("Ingredient was successfully deleted."); } else { Console.WriteLine("Error... try again..."); } }
public void RemoveIngredient_ShouldReturnTrue() { bool deleteResult = _repo.RemoveIngredient(_content.IngredientName); Assert.IsTrue(deleteResult); }