Esempio n. 1
0
 public void serveCoffee(CoffeeOrderContext context)
 {
     Console.WriteLine ("Serving Coffee flavor " + flavor + " to table number " + context.getTable ());
 }
Esempio n. 2
0
 public static void takeOrders(String flavorIn, int table)
 {
     flavors [ordersMade]  = flavorFactory.getCoffeeFlavor(flavorIn);
     tables [ordersMade++] = new CoffeeOrderContext(table);
 }
Esempio n. 3
0
 public static void takeOrders(String flavorIn, int table)
 {
     flavors [ordersMade] = flavorFactory.getCoffeeFlavor (flavorIn);
     tables [ordersMade++] = new CoffeeOrderContext (table);
 }
Esempio n. 4
0
 public void serveCoffee(CoffeeOrderContext context)
 {
     Console.WriteLine("Serving Coffee flavor " + flavor + " to table number " + context.getTable());
 }