示例#1
0
        static void Main(string[] args)
        {
            var PFA = new PizzaFactoryA();

            PFA.OrderPizza("Mexicana");
            PFA.OrderPizza("Peperoni");
            var PFB = new PizzaFactoryB();

            PFB.OrderPizza("Mexicana");
            PFB.OrderPizza("Peperoni");
            Console.Read();
        }
        static void Main(string[] args)
        {
            var PFA = new PizzaFactoryA();

            PFA.OrderPizza("Mexicana", "chica");
            PFA.OrderPizza("Peperoni", "mediana");
            PFA.OrderPizza("Hawaiana", "grande");
            var PFB = new PizzaFactoryB();

            PFB.OrderPizza("Mexicana", "grande");
            PFB.OrderPizza("Peperoni", "chica");
            PFB.OrderPizza("Hawaiana", "mediana");

            Console.Read();
        }