public Car BuildCar() { carBuilder.BuildBody(); carBuilder.BuildEngine(); carBuilder.BuildWheel(); return(carBuilder.GetCar()); }
public void BuildFullCar() { _builder.BuildTire(); _builder.BuildDoor(); _builder.BuildCarFrame(); _builder.BuildEngine(); }
public Car Construct() { builder.BuildCarSkeleton(); builder.BuildCarWindows(); builder.BuildEngine(); builder.BuildWheels(); return(builder.GetResult()); }
public void Build() { _builder.BuildBodyStyle(); _builder.BuildPower(); _builder.BuildEngine(); _builder.BuildBrakes(); _builder.BuildSeats(); _builder.BuildWindows(); _builder.BuildFuelType(); }
public void BuildCar() { Console.WriteLine("We have new order, time to build new car! Let's move!"); Console.ReadKey(); List <Task> taskList = new List <Task>(); taskList.Add(Task.Factory.StartNew(() => _carBuilder.BuildBody())); taskList.Add(Task.Factory.StartNew(() => _carBuilder.BuildEngine())); taskList.Add(Task.Factory.StartNew(() => _carBuilder.BuildSuspension())); Console.WriteLine("How long do i have to wait on one car?!"); Task.WaitAll(taskList.ToArray()); Console.WriteLine("Finally, your car is ready sir"); }
public void ConstructCar(ICarBuilder builder) { builder.BuildWheels(); builder.BuildAddons(); builder.BuildEngine(); }
public void MakeCar() { CarBuilder.BuildBody(); CarBuilder.BuildTransmission(); CarBuilder.BuildEngine(); }
public void BuildCar(ICarBuilder carBuilder) { carBuilder.BuildBody(); carBuilder.BuildEngine(); carBuilder.BuildSeats(); }
public void Construct(ICarBuilder builder) { builder.BuildWheel(); builder.BuildEngine(); }
public void BuildThatCar() { _carBuilder.BuildCarcas(); _carBuilder.BuildEngine(); _carBuilder.BuildWheels(); }
public void makeCar() { carBuilder.BuildEngine(); carBuilder.BuildTires(); }