public ExchangeRatesSynchronizer(IServiceClient serviceClient, ILogger <ExchangeRatesSynchronizer> logger, ApplicationSettings applicationSettings, IExchangeRatesRepository exchangeRatesRepository) { _serviceClient = serviceClient; _logger = logger; _applicationSettings = applicationSettings; _repository = exchangeRatesRepository; }
public ExchangeRateApplication(IExchangeRatesRepository exchangeRatesRepository, IDateValidationService dateValidationService, IExchangeRateService exchangeRateService) { _exchangeRatesRepository = exchangeRatesRepository; _dateValidationService = dateValidationService; _exchangeRateService = exchangeRateService; }
public void Setup() { _stubExchangeRatesRepository = Substitute.For <IExchangeRatesRepository>(); ExchangeRateDto exchangeRateEUR = createExchangeRate("Euro", "EUR", 100, 500m); _stubExchangeRatesRepository.GetExchangeRateByISO("EUR").Returns(exchangeRateEUR); ExchangeRateDto exchangeRateUSD = createExchangeRate("Amerikanske dollar", "USD", 100, 600m); _stubExchangeRatesRepository.GetExchangeRateByISO("USD").Returns(exchangeRateUSD); ExchangeRateDto exchangeRateJPY = createExchangeRate("Japanske yen", "JPY", 100, 500m); _stubExchangeRatesRepository.GetExchangeRateByISO("JPY").Returns(exchangeRateJPY); }
public ExchangeRatesRequestHandler(IExchangeRatesRepository exchangeRatesRepository) { fExchangeRatesRepository = exchangeRatesRepository; }
public ExchangeMoneyLogic(IExchangeRatesRepository exchangeRatesRepository) { _exchangeRatesRepository = exchangeRatesRepository; }
public ExchangeRatesController(IExchangeRatesRepository exchangeRepos, Dictionary <string, string[]> currencyPairs) { m_ExchangeRatesRepository = exchangeRepos ?? throw new ArgumentException(nameof(exchangeRepos)); m_CurrencyPairs = currencyPairs; }
public ExchangeRateDataProvider(IExchangeRatesRepository dataServiceCreator) { _dataServiceCreator = dataServiceCreator; }
public CurrencyTypeLookupProvider(IExchangeRatesRepository repository) { _repository = repository; }