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