Beispiel #1
0
        public Skoda ConstructSkoda(int year)
        {
            Skoda car = _skodaBuilder
                        .InputEngine(1.6)
                        .TakeFromConstructionYear(year)
                        .AddDoor(2)
                        .AddDoor(3)
                        .Build();

            return(car);
        }
Beispiel #2
0
        public Skoda Build()
        {
            Skoda product = new Skoda(_engineVolume, _doors, _yearOfConstruction);

            return(product);
        }