Ejemplo n.º 1
0
 public LimitValidator(ITransactionDbController transactionDbController)
 {
     _transactionDbController = transactionDbController;
     _limits = new Dictionary <string, decimal>();
     _limits.Add("USD", 200);
     _limits.Add("BRL", 300);
 }
Ejemplo n.º 2
0
 public CurrencyPurchaseService(ICurrenciesExchangeService exchangeService,
                                ITransactionDbController transactionDbController,
                                IValidator <Transaction> validator
                                )
 {
     _exchangeService         = exchangeService;
     _transactionDbController = transactionDbController;
     _validator = validator;
 }