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