Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var sandwichDirector = new SandwichDirector(new HamburgerSandwichBuilder());
            sandwichDirector.MakeSandwich();
            var sandwich = sandwichDirector.GetSandwich();

            Console.WriteLine(sandwich.Display());
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var sandwichDirector = new SandwichDirector(new HamburgerSandwichBuilder());

            sandwichDirector.MakeSandwich();
            var sandwich = sandwichDirector.GetSandwich();

            Console.WriteLine(sandwich.Display());
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            SandwichDirector sandwichDirector = new SandwichDirector(new MySandwichBuilder());

            sandwichDirector.buildSandwich();
            Sandwich sandwich1 = sandwichDirector.getSandwhich();

            sandwich1.display();

            SandwichDirector sandwichDirector2 = new SandwichDirector(new ClubSandwichBuilder());

            sandwichDirector2.buildSandwich();
            Sandwich sandwich2 = sandwichDirector2.getSandwhich();

            sandwich2.display();
        }