Esempio n. 1
0
        public void RealWorldTest()
        {
            Shop shop = new Shop();

            VehicleBuilder builder;

            builder = new MotorCycleBuilder();
            shop.Construct(builder);
            builder.GetVehicleInstance().Show();

            builder = new CarBuilder();
            shop.Construct(builder);
            builder.GetVehicleInstance().Show();

            builder = new ScooterBuilder();
            shop.Construct(builder);
            builder.GetVehicleInstance().Show();
        }