public ExchangeCurrencyRulesEngine(ICurrencyContext context, ICurrencyRepository ratesRepository)
 {
     this.currencyContext  = context;
     this.ratesRepository  = ratesRepository;
     feeBasedExchangeRules = new List <IRule>
     {
         new CurrentCurrencyExchangeRatesRule(this.ratesRepository),
         new ExchangeFeeCurrencyRule()
     };
 }
예제 #2
0
 public CurrencyRepository(ICurrencyContext context)
 {
     _context = context;
 }
예제 #3
0
 public CurrencyRepository()
 {
     _context = new CurrencyContext();
 }