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(); }
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); }
public void AddToCart4(Crust crust) { Order3 newCrust = new Order3(crust); shoppingCart4.Add(newCrust); }
public Order3(Crust _crust) { crust = _crust; }