Esempio n. 1
0
 public ShipFactory(IShipCoordinatesValidator shipCoordinatesValidator, IShipVectorsValidator shipVectorsValidator)
 {
     _shipCoordinatesValidator = shipCoordinatesValidator;
     _shipVectorsValidator     = shipVectorsValidator;
 }
Esempio n. 2
0
 public Ship(IList <KeyValuePair <int, int> > coordinates, IShipCoordinatesValidator coordinatesValidator)
 {
     this.coordinatesValidator = coordinatesValidator;
     Coordinates = GetCoordinates(coordinates);
 }