Beispiel #1
0
 public GetCurrencyExchangeRateHandler(
     IGeometry geometry,
     ICurrencyExchangeRate currencyRate,
     ICartesianCoordinates coordinates,
     IOptions <ApiOptions> apiOptions)
 {
     _geometry     = geometry ?? throw new ArgumentNullException(nameof(geometry));
     _currencyRate = currencyRate ?? throw new ArgumentNullException(nameof(currencyRate));
     _coordinates  = coordinates ?? throw new ArgumentNullException(nameof(geometry));
     _apiOptions   = apiOptions ?? throw new ArgumentNullException(nameof(apiOptions));
 }
 public CurrencyExchangeRateService(ICurrencyExchangeRate currencyExchangeRate)
 {
     _currencyExchangeRate = currencyExchangeRate;
 }