Esempio n. 1
0
        static void Main(string[] args)
        {
            var nyStore = new NYStylePizzaStore();

            var pizza = nyStore.CreatePizza("cheese");

            Console.WriteLine("Ethan ordered a " + pizza.GetName() + '\n');
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            PizzaStore nyPizzaStore = new NYStylePizzaStore();
            nyPizzaStore.orderPizza("cheese");
            nyPizzaStore.orderPizza("clam");

            PizzaStore chicagoPizzaStore = new ChicagoStylePizzaStore();
            chicagoPizzaStore.orderPizza("cheese");
            chicagoPizzaStore.orderPizza("clam");

            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            PizzaStore nyStylePizzaStore = new NYStylePizzaStore();

            Pizza pizza = nyStylePizzaStore.OrderPizza(PizzaType.Cheese);

            Console.WriteLine($"Ordered a {pizza.Name}\n");

            pizza = nyStylePizzaStore.OrderPizza(PizzaType.Clam);
            Console.WriteLine($"Ordered a {pizza.Name}\n");

            Console.ReadKey();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            PizzaStore nyPizzaStore = new NYStylePizzaStore();

            nyPizzaStore.orderPizza("cheese");
            nyPizzaStore.orderPizza("clam");

            PizzaStore chicagoPizzaStore = new ChicagoStylePizzaStore();

            chicagoPizzaStore.orderPizza("cheese");
            chicagoPizzaStore.orderPizza("clam");

            Console.ReadLine();
        }