public ExchangeRatesController(
     IExchangeRatesManager exchangeRatesManager,
     IExchangeRatesDtoFactory dtoFactory)
 {
     _Manager    = exchangeRatesManager ?? throw new ArgumentNullException(nameof(exchangeRatesManager));
     _DtoFactory = dtoFactory ?? throw new ArgumentNullException(nameof(dtoFactory));
 }
Exemplo n.º 2
0
        public WalletAppService(IRepository <Transaction, long> walletLogsRepository,
                                IEmailSender emailSender,
                                IRepository <User, long> userRepository,
                                IUserEmailer userEmailer,
                                IHostSettingsAppService hostSettingsAppService,
                                ISettingManager settingManager,
                                ITenantSettingsAppService tenantSettingService,
                                IRepository <ExchangeRate, long> exchangeRateRepository,
                                ICurrenciesRepository currenciesRepository,
                                IRepository <SupportedCurrency, long> supportedCurrencyRepository, IExchangeRatesManager exchangeManager,
                                IUnitOfWorkManager unitOfWorkManager,
                                IRepository <Tenant> tenantRepository)

        {
            _walletLogsRepository        = walletLogsRepository;
            _emailSender                 = emailSender;
            _userRepository              = userRepository;
            _userEmailer                 = userEmailer;
            _hostSettingsAppService      = hostSettingsAppService;
            _settingManager              = settingManager;
            _tenantSettingService        = tenantSettingService;
            _exchangeRateRepository      = exchangeRateRepository;
            _currenciesRepository        = currenciesRepository;
            _supportedCurrencyRepository = supportedCurrencyRepository;
            _exchangeManager             = exchangeManager;
            _unitOfWorkManager           = unitOfWorkManager;
            _tenantRepository            = tenantRepository;
        }
Exemplo n.º 3
0
 public CurrenciesAppService(ICurrenciesRepository currenciesRepository, IRepository <SupportedCurrency, long> supportedCurrenciesRepository,
                             IRepository <CompanyToken, int> companyTokenRepository,
                             IRepository <User, long> userRepository, TenantManager tenantManager,
                             IExchangeRatesManager exchangeManager, IRepository <ExchangeRate, long> exchangeRatesRepository,
                             IUnitOfWorkManager unitOfWorkManager)
 {
     _currenciesRepository          = currenciesRepository;
     _supportedCurrenciesRepository = supportedCurrenciesRepository;
     _userRepository          = userRepository;
     _tenantManager           = tenantManager;
     _exchangeManager         = exchangeManager;
     _exchangeRatesRepository = exchangeRatesRepository;
     _unitOfWorkManager       = unitOfWorkManager;
     _companyTokenRepository  = companyTokenRepository;
 }