public BattleshipController( IBoardGenerator boardGenerator, IShipsGenerator shipsGenerator, IBoardCache boardCache, IFieldToPointConverter fieldToPointConverter) { this.boardGenerator = boardGenerator; this.shipsGenerator = shipsGenerator; this.boardCache = boardCache; this.fieldToPointConverter = fieldToPointConverter; }
public BattleshipController( IEmptyBoardGenerator emptyBoardGenerator, IBoardSaver boardSaver, IFieldToPointConverter fieldToPointConverter, IShipsGenerator shipsGenerator, IBoardWithShipsGenerator boardWithShipsGenerator) { this.emptyBoardGenerator = emptyBoardGenerator; this.boardSaver = boardSaver; this.fieldToPointConverter = fieldToPointConverter; this.shipsGenerator = shipsGenerator; this.boardWithShipsGenrator = boardWithShipsGenerator; }