public void AddMenuItem()
        {
            MenuItem  cafe     = new MenuItem();
            Cafe_Repo cafeRepo = new Cafe_Repo();

            bool added = cafeRepo.AddMenuItem(cafe);

            Assert.IsTrue(added);

            Console.WriteLine(added);
        }
Example #2
0
        public void DeleteOrder()
        {
            Cafe_Repo _contentRepo = new Cafe_Repo();

            _contentRepo.AddOrderToList(_orderContent);


            bool wasDeleted = _contentRepo.DeleteOrder(_orderContent);

            Assert.IsTrue(wasDeleted);
        }
        public void DeleteMenuItems()
        {
            MenuItem cafe;
            MenuItem menuItem = new MenuItem(111, "asl;dkf", "asdf", "asdf", 22.22);

            Cafe_Repo cafe_Repo = new Cafe_Repo();

            cafe_Repo.AddMenuItem(menuItem);
            cafe = cafe_Repo.ReadMenuByItemNumber(111);
            bool delete = cafe_Repo.DeleteMenuItem(cafe);

            Assert.IsTrue(delete);
            Console.WriteLine(delete);
        }
        public void ReadMenuItem()
        {
            MenuItem  cafe     = new MenuItem();
            Cafe_Repo cafeRepo = new Cafe_Repo();

            cafeRepo.AddMenuItem(cafe);

            List <MenuItem> menuitems = cafeRepo.ReadMenu();

            bool menuHasItems = menuitems.Contains(cafe);

            Assert.IsTrue(menuHasItems);

            Console.WriteLine(menuHasItems);
        }