Ejemplo n.º 1
0
        public void RemoveItemsListTest()
        {
            //Arrange is set from Test Initialize

            //Act
            bool actual = menuTest.RemoveItemsFromList("Komodo Omelette");

            //Assert
            Assert.AreEqual(true, actual);
        }
Ejemplo n.º 2
0
        private void DeleteMenuItem()
        {
            DisplayAllItems();

            //Get the meal number they want to delete
            Console.WriteLine("Enter the meal name of the menu item you would like to remove");

            string input = Console.ReadLine();

            //Call the delete method
            bool wasDeleted = _itemRepo.RemoveItemsFromList(input);

            //If the content was deleted, say so   //Otherwise state it could not be deleted

            if (wasDeleted)
            {
                Console.WriteLine("The content was successfullly deleted.");
            }

            else
            {
                Console.WriteLine("The content was not successfully deleted.  Please retry.");
            }
        }