Exemple #1
0
 public ShipFactory(IShipCoordinatesValidator shipCoordinatesValidator, IShipVectorsValidator shipVectorsValidator)
 {
     _shipCoordinatesValidator = shipCoordinatesValidator;
     _shipVectorsValidator     = shipVectorsValidator;
 }
Exemple #2
0
 public Ship(ShipVector vectorX, ShipVector vectorY, IShipVectorsValidator vectorsValidator)
 {
     this.vectorsValidator = vectorsValidator;
     Coordinates           = GetCoordinates(vectorX, vectorY);
 }