public void BarbecueRepo_RemoveFromList_GetShouldReturnCorrectCount() { SeedBarbecueList(); int expected = 3; _barbecueRepo.RemoveBarbecueFromList("park"); int barbecueCount = _barbecueRepo.GetBarbecueList().Count; Assert.AreEqual(expected, barbecueCount); }
//Delete Existing Content private void DeleteExistingBarbecue() { DisplayAllBarbecues(); Console.WriteLine("\nEnter the venue of the Barbecue you'd like to delete"); string venue = Console.ReadLine(); bool wasDeleted = _barbecueRepo.RemoveBarbecueFromList(venue); if (wasDeleted) { Console.WriteLine("The Barbecue was successfully deleted"); } else { Console.WriteLine("The Barbecue could not be deleted"); } }