コード例 #1
0
 public GameService()
 {
     randomShipsGenerator = new RandomShipsGenerator();
     _ships = randomShipsGenerator.RandomizeShips();
 }
コード例 #2
0
 internal GameService(IRandomShipsGenerator randomShipsGenerator)
 {
     this.randomShipsGenerator = randomShipsGenerator;
     _ships = randomShipsGenerator.RandomizeShips();
 }