Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ColaBuilder builder = new ColaBuilder();
            Foreman     foreman = new Foreman(builder);

            foreman.CreateDrink();
            Drink d = builder.GetResult();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Builder builder = new ManicureMaster();
            Foreman foreman = new Foreman(builder);

            foreman.GiveCommand();

            Nails nails = builder.GetManicure();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Builder builder = new ConcreteBuilder();
            Foreman foreman = new Foreman(builder);

            foreman.Construct();

            House house = builder.GetResult();

            Console.ReadKey();
        }
Ejemplo n.º 4
0
        public static void Main()
        {
            Builder builder = new ConcreteBuilder();
            Foreman foreman = new Foreman(builder);

            foreman.Construct();

            House house = builder.GetResult();

            // Delay.
            Console.ReadKey();
        }
Ejemplo n.º 5
0
        static void Main(string[] args)
        {
            //house building
            Builder.Builder b = new ConcreteBuilder();
            Foreman         f = new Foreman(b);

            f.Construct();
            House h = b.GetResult();

            //bottle building
            BottleBuilder.BottleBuilder bb = new PepsiBottleBuilder();
            Director d = new Director(bb);

            d.Construct();
            Bottle bottle = bb.GetBottle();
        }
Ejemplo n.º 6
0
 public House.House BuildHome(Foreman foreman)
 {
     return(foreman.Build());
 }