public override Car Construct() { CarBuilder.BuildFrame(); CarBuilder.BuildEngine(); CarBuilder.BuildWheels(); CarBuilder.BuildSafety(); return(CarBuilder.GetCar()); }
public void When_Car_IsBuild() { var builder = new CarBuilder(); builder .BuildFrame() .BuildEngine() .BuildWheels() .BuildDoors() .DisplayVehicle(); }
static void Main(string[] args) { CarBuilder carBuilder = new CarBuilder(new BMW520Car()); carBuilder.BuildFrame(); carBuilder.BuildEngine(); carBuilder.BuildDoors(); carBuilder.BuildWheels(); carBuilder.Show(); }