public Burger(DrinkType drink, SideType side, MainDishType main, SizeType size, double price) { _drink = drink; _side = side; _main = main; _size = size; _price = price; }
/// <summary> /// Creates a new menu and adds it to the current active profile /// </summary> /// <param name="menuType">MenuType to create</param> /// <param name="drinkType">Type of drink to add</param> /// <param name="sideType">Type of menu side to add</param> /// <param name="mainDishType">Type of the main dish</param> /// <param name="sizeType">Size of the dish</param> public void AddProductToProfile(MenuType menuType, DrinkType drinkType, SideType sideType, MainDishType mainDishType, SizeType sizeType) { var menu = new DishFactory( menuType, drinkType, sideType, mainDishType, sizeType) .CreateMenu(); ActiveProfile.AddItem(menu); }
public DishFactory(MenuType menu, DrinkType drink, SideType side, MainDishType main, SizeType size) { _menuType = menu; _selectedDrink = drink; ApplyItemPrice(drink); _selectedSide = side; ApplyItemPrice(side); _selectedMain = main; ApplyItemPrice(main); _selectedSize = size; }