Exemplo n.º 1
0
        static void AddCrustToCustomPizza(CrustStation selectionOfCrust, ShoppingCart shoppingCart4)
        {
            selectionOfCrust.PrintAvailableCrusts();

            Console.WriteLine("Enter the id of the crust you would like: ");
            int   crustId     = int.Parse(Console.ReadLine());
            Crust crustToCart = selectionOfCrust.GetFromStock(crustId);

            shoppingCart4.AddToCart4(crustToCart);

            shoppingCart4.PrintShoppingCart4();
        }
Exemplo n.º 2
0
        public CrustStation()
        {
            selectionOfCrust = new List <Crust>();

            Crust thin = new Crust();

            thin.CrustGenerator(1, "thin", 1.50);
            Crust thick = new Crust();

            thick.CrustGenerator(2, "thick", 3);

            selectionOfCrust.Add(thin);
            selectionOfCrust.Add(thick);
        }
Exemplo n.º 3
0
        public void AddToCart4(Crust crust)
        {
            Order3 newCrust = new Order3(crust);

            shoppingCart4.Add(newCrust);
        }
Exemplo n.º 4
0
 public Order3(Crust _crust)
 {
     crust = _crust;
 }