static void Main(string[] args) { Menu menu = new Menu(); Order order = menu.CreateOrder(); Lunch lunch = order.Prepare(); Console.WriteLine(lunch); }
public Lunch Prepare() { Lunch lunch = new Lunch(); foreach (Product product in products) { product.Prepare(); lunch.Add(product); } return lunch; }
public Lunch Prepare() { Lunch lunch = new Lunch(); foreach (Product product in products) { product.Prepare(); lunch.Add(product); } return(lunch); }