Example #1
0
        public void TestRemoveItemByName()
        {
            List <string> ingredients = new List <string>
            {
                "Cheese, Bread, butter"
            };

            CafeChallenge_Repository.Cafe           newCafe   = new CafeChallenge_Repository.Cafe(1, "Grilled Cheese", "A great grilled cheese", ingredients, 5.50);
            CafeChallenge_Repository.CafeRepository _cafeRepo = new CafeChallenge_Repository.CafeRepository();

            _cafeRepo.AddMenuItems(newCafe);

            _cafeRepo.RemoveItemByName(newCafe.MealName);
        }
Example #2
0
        public void TestViewMenuItems()
        {
            List <string> ingredients = new List <string>
            {
                "Cheese, Bread, butter"
            };

            CafeChallenge_Repository.Cafe newCafe = new CafeChallenge_Repository.Cafe(1, "Grilled Cheese", "A great grilled cheese", ingredients, 5.50);

            CafeChallenge_Repository.CafeRepository newCafeRepo = new CafeChallenge_Repository.CafeRepository();

            newCafeRepo.AddMenuItems(newCafe);

            newCafeRepo.GetMenuItems();
        }
Example #3
0
        public void TestCreateMenuItem()
        {
            List <string> ingredients = new List <string>
            {
                "Cheese, Bread, butter"
            };

            CafeChallenge_Repository.Cafe newCafe = new CafeChallenge_Repository.Cafe(1, "Grilled Cheese", "A great grilled cheese", ingredients, 5.50);

            CafeChallenge_Repository.CafeRepository _cafeRepo = new CafeChallenge_Repository.CafeRepository();

            _cafeRepo.AddMenuItems(newCafe);

            Console.WriteLine($"{newCafe.MealName}");
        }