public ExchangeController() { //TODO: DI _exchangeDataService = new ExchangeDataService(); _exchangeDataRepository = new InMemoryExchangeDataRepository(); _exchangeRateCalculator = new ExchangeRateCalculator(_exchangeDataRepository); }
public ExchangeRateCalculator(IExchangeDataRepository exchangeDataRepository) { _exchangeDataRepository = exchangeDataRepository; }