Example #1
0
        public CarBModel GetCarDModel()
        {
            void Sequence(AbstractCarModel a)
            {
                a.Start();
                a.Stop();
            }

            this._carBBuilder = new CarBBuilder(Sequence);
            return((CarBModel)this._carBBuilder.GetCarModel());
        }
Example #2
0
        public CarAModel GetCarAModel()
        {
            void Sequence(AbstractCarModel a)
            {
                a.Start();
                a.EngineBoom();
                a.Alarm();
            }

            this._carABuilder = new CarABuilder(Sequence);
            return((CarAModel)this._carABuilder.GetCarModel());
        }