Ejemplo n.º 1
0
        public TransactionService(
            IBankAccountService bankAccountService,
            ICurrencyService currencyService,
            IExchangeRateHistoryService exchangeRateHistoryService,

            IRepository <Transaction> transactionRepository,
            IBankAccountRepository bankAccountRepository,

            IUnitOfWork unitOfWork,
            ILogger <IBankAccountService> logger
            )
        {
            this.BankAccountService         = bankAccountService;
            this.CurrencyService            = currencyService;
            this.ExchangeRateHistoryService = exchangeRateHistoryService;

            this.TransactionRepository = transactionRepository;
            this.BankAccountRepository = bankAccountRepository;

            this.UnitOfWork = unitOfWork;
            this.Logger     = logger;
        }
Ejemplo n.º 2
0
 public ExchangeRateController(CurrentLoginInfo currentLoginInfo, IExchangeRateHistoryService exchangeRateHistoryService, ILogger <IExchangeRateController> logger)
 {
     this.CurrentLoginInfo           = currentLoginInfo;
     this.ExchangeRateHistoryService = exchangeRateHistoryService;
     this.Logger = logger;
 }