static void Main(string[] args) { SimplePizzaFactory factory = new SimplePizzaFactory(); PizzaStore store = new PizzaStore(factory); Pizza pizza = store.OrderPizza("cheese"); Console.WriteLine("We ordered a " + pizza.Name + "\n"); pizza = store.OrderPizza("veggie"); Console.WriteLine("We ordered a " + pizza.Name + "\n"); // Wait for user Console.ReadKey(); }
static void Main(string[] args) { SimplePizzaFactory factory = new SimplePizzaFactory(); PizzaStore store = new PizzaStore(factory); Pizza pizza = store.OrderPizza("cheese"); Console.WriteLine("We ordered a " + pizza.Name + "\n"); pizza = store.OrderPizza("veggie"); Console.WriteLine("We ordered a " + pizza.Name + "\n"); // Wait for user Console.ReadKey(); }