public void BuildSimpleHouse() { _houseBuilder.BuildWalls(); _houseBuilder.BuildDoors(); _houseBuilder.BuildWindows(); }
public void BuildHouse(IHouseBuilder builder) { builder.BuildWalls(); builder.BuildRoof(); builder.BuildDoors(); //more or less building steps can be added, and the step order can be changed as well }
public void BuildHouse(IHouseBuilder builder) { builder.BuildBackyard(); builder.BuildDoors(); builder.BuildSwimmingPool(); builder.BuildWalls(); }
public void CreateWoodenHouse() { _builder.BuildDoors(); _builder.BuildRoof(); _builder.BuildWalls(); }