コード例 #1
0
        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...");
            }
        }
コード例 #2
0
        public void RemoveIngredient_ShouldReturnTrue()
        {
            bool deleteResult = _repo.RemoveIngredient(_content.IngredientName);

            Assert.IsTrue(deleteResult);
        }