public void Test()
        {
            var shop       = new Director();
            var carBuilder = new CardBuilder();
            var car        = shop.Construct();

            car.DoSomething();
        }
Esempio n. 2
0
        public Car Construct()
        {
            CardBuilder builder = new CardBuilder();

            builder.Step1();
            builder.Step2();
            return(builder.GetResult());
        }