Ejemplo n.º 1
0
        public void GetMenuItems()
        {
            List <MenuItemModel> menuItem = MenuItemManager.GetMenuItems(2);
            int expected = 2;

            Assert.AreEqual(menuItem.Count, expected);
        }
Ejemplo n.º 2
0
 public MainPage()
 {
     this.InitializeComponent();
     Sounds                = SoundItemManager.GenerateSounds();
     SelectionItem         = MenuItemManager.GetMenuItems();
     BackButton.Visibility = Visibility.Collapsed;
 }
Ejemplo n.º 3
0
        public ActionResult EditMenu(int ID)
        {
            MenuModel             menuModel = MenuManager.GetMenu(ID);
            MenuMenuItemViewModel mmivm     = new MenuMenuItemViewModel()
            {
                Menu        = menuModel,
                MenuItems   = MenuItemManager.GetMenuItems(menuModel.MenuID),
                MenuSection = MenuSectionManager.GetMenuSections(menuModel.MenuID)
            };

            return(View(mmivm));
        }
Ejemplo n.º 4
0
        public ActionResult Details(int ID)
        {
            MenuModel            menu = MenuManager.GetVendorMenu(ID);
            MenuSectionMenuItems msmi = new MenuSectionMenuItems();

            msmi.MenuModel    = menu;
            msmi.MenuSections = MenuSectionManager.GetMenuSections(menu.MenuID);
            msmi.MenuItems    = MenuItemManager.GetMenuItems(menu.MenuID);
            foreach (var item in msmi.MenuItems)
            {
                OrderItemModel orderItemModel = new OrderItemModel
                {
                    MenuItemID = item.ItemID,
                    Quantity   = 0
                };
                msmi.OrderItems.Add(orderItemModel);
            }
            msmi.VendorModel = VendorManager.GetVendor(ID);
            return(View(msmi));
        }