Exemplo n.º 1
0
        public Pizza MakePizza()
        {
            Pizza pizza = new Pizza();

            coreBuilder.RollDough(pizza);
            coreBuilder.AddCheese(pizza);
            coreBuilder.SpreadSauce(pizza);
            meatBuilder.AddChicken(pizza);
            meatBuilder.AddPepperoni(pizza);
            meatBuilder.AddSausage(pizza);
            return(pizza);
        }
        public Pizza MakePizza()
        {
            Pizza pizza = new Pizza();

            coreBuilder.RollDough(pizza);
            coreBuilder.AddCheese(pizza);
            coreBuilder.SpreadSauce(pizza);

            veggieBuilder.AddMushrooms(pizza);
            veggieBuilder.AddPeppers(pizza);
            veggieBuilder.AddOlives(pizza);
            return(pizza);
        }