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