public ZoneInfo( ZonePoint zonePoint, GetRelativeZoneInfoDelegate getRelativeZoneInfo, ILandValueCalculator landValueCalculator ) { Point = zonePoint; _getRelativeZoneInfo = getRelativeZoneInfo ?? throw new ArgumentNullException(nameof(getRelativeZoneInfo)); _landValueCalculator = landValueCalculator ?? throw new ArgumentNullException(nameof(landValueCalculator)); }
public ZoneInfo( ZonePoint zonePoint, GetRelativeZoneInfoDelegate getRelativeZoneInfo, ILandValueCalculator landValueCalculator ) { if (zonePoint == null) { throw new ArgumentNullException(nameof(zonePoint)); } if (getRelativeZoneInfo == null) { throw new ArgumentNullException(nameof(getRelativeZoneInfo)); } if (landValueCalculator == null) { throw new ArgumentNullException(nameof(landValueCalculator)); } Point = zonePoint; _getRelativeZoneInfo = getRelativeZoneInfo; _landValueCalculator = landValueCalculator; }