예제 #1
0
        private void RemoveMealFromList()
        {
            Console.WriteLine("What order ID would you like to remove?");
            int orderID = int.Parse(Console.ReadLine());

            _menuRepo.RemFromMenuList(orderID);
        }
예제 #2
0
        public void RemFromMenuList()
        {
            ChallengeRepository repoInfo     = new ChallengeRepository();
            Challenge           productInfo  = new Challenge(2, "Burger N Fries", "Hamburger with potato french fries", "Bread, meat, potato", 5.99m);
            Challenge           productInfo2 = new Challenge(3, "Tuna N Chips", "Tuna filet with potato chips", "Bread, tuna, potato", 5.99m);

            repoInfo.AddToMenuList(productInfo);
            repoInfo.AddToMenuList(productInfo2);
            repoInfo.RemFromMenuList(3);
            List <Challenge> list = repoInfo.GetMenuList();

            var expected = 1;
            var actual   = list.Count;

            Assert.AreEqual(expected, actual);
        }