예제 #1
0
        public void BuildSimpleHouse()
        {
            _houseBuilder.BuildWalls();

            _houseBuilder.BuildDoors();

            _houseBuilder.BuildWindows();
        }
예제 #2
0
 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
 }
예제 #3
0
 public void BuildHouse(IHouseBuilder builder)
 {
     builder.BuildBackyard();
     builder.BuildDoors();
     builder.BuildSwimmingPool();
     builder.BuildWalls();
 }
예제 #4
0
 public void CreateWoodenHouse()
 {
     _builder.BuildDoors();
     _builder.BuildRoof();
     _builder.BuildWalls();
 }