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