public JobTitlesController(IEmployeeSubordinatesRepository employeeSubordinatesRepository, IEmployeeSupervisorsRepository employeeSupervisorsRepository, IEmployeeMembershipsRepository employeeMembershipsRepository, IEmployeeSalaryRepository employeeSalaryRepository, IEmployeeJobRepository employeeJobRepository, IEmployeeImmigrationRepository employeeImmigrationRepository, IEmployeeDependantRepository employeeDependantRepository, IEmployeeEmergencyContactRepository employeeEmergencyContactRepository, IEmployeeContactDetailsRepository employeeContactDetailsRepository, IEmployeeRepository employeeRepository, INationalitiesRepository nationalitiesRepository, IMembershipsRepository membershipsRepository, ILanguagesRepository languagesRepository, ILicensesRepository licensesRepository, IEducationRepository educationRepository, ISkillsRepository skillsRepository, IDepartmentRepository departmentRepository, ICompanyBranchRepository companyBranchRepository, ICompanyInformationRepository companyInformationRepository, ICurrenciesRepository currenciesRepository, IJobCategoriesRepository jobCategoriesRepository, IEmploymentStatusRepository employmentStatus, IPayGradesRepository payGradesRepository, IJobTitlesRepository jobTitlesRepository)
 {
     _employeeSubordinatesRepository     = employeeSubordinatesRepository;
     _employeeSupervisorsRepository      = employeeSupervisorsRepository;
     _employeeMembershipsRepository      = employeeMembershipsRepository;
     _employeeSalaryRepository           = employeeSalaryRepository;
     _employeeJobRepository              = employeeJobRepository;
     _employeeImmigrationRepository      = employeeImmigrationRepository;
     _employeeDependantRepository        = employeeDependantRepository;
     _employeeEmergencyContactRepository = employeeEmergencyContactRepository;
     _employeeContactDetailsRepository   = employeeContactDetailsRepository;
     _employeeRepository           = employeeRepository;
     _nationalitiesRepository      = nationalitiesRepository;
     _membershipsRepository        = membershipsRepository;
     _languagesRepository          = languagesRepository;
     _licensesRepository           = licensesRepository;
     _educationRepository          = educationRepository;
     _skillsRepository             = skillsRepository;
     _departmentRepository         = departmentRepository;
     _companyBranchRepository      = companyBranchRepository;
     _companyInformationRepository = companyInformationRepository;
     _currenciesRepository         = currenciesRepository;
     _jobCategoriesRepository      = jobCategoriesRepository;
     _employmentStatus             = employmentStatus;
     _payGradesRepository          = payGradesRepository;
     _jobTitlesRepository          = jobTitlesRepository;
 }
예제 #2
0
 public UpdateExchangeRatesWorker(AbpTimer timer, ICurrenciesRepository currenciesRepository, IRepository <ExchangeRate, long> exchangeRatesRepository, IUnitOfWorkManager unitOfWorkManager) : base(timer)
 {
     _currenciesRepository    = currenciesRepository;
     _exchangeRatesRepository = exchangeRatesRepository;
     _unitOfWorkManager       = unitOfWorkManager;
     Timer.Period             = UPDATE_PERIOD_MILLISECONDS;
 }
예제 #3
0
 public ExchangeRatesManager(ICurrenciesRepository currenciesRepository, IRepository <SupportedCurrency, long> supporteCurrenciesRepository
                             , IRepository <ExchangeRate, long> exchangeRepository)
 {
     _currenciesRepository         = currenciesRepository;
     _supporteCurrenciesRepository = supporteCurrenciesRepository;
     _exchangeRepository           = exchangeRepository;
 }
예제 #4
0
 public UpdateTempCurrenciesWorker(AbpTimer timer, ICurrenciesRepository currenciesRepository, IRepository <SupportedCurrency, long> supportedCurrenciesRepository) : base(timer)
 {
     _currenciesRepository          = currenciesRepository;
     _supportedCurrenciesRepository = supportedCurrenciesRepository;
     Timer.RunOnStart = true;
     Timer.Period     = 60 * 1000;
 }
예제 #5
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;
        }
예제 #6
0
 public LegacyAssetsService(
     IProductsRepository productsRepository,
     IClientProfileSettingsRepository clientProfileSettingsRepository,
     ICurrenciesRepository currenciesRepository,
     ITickFormulaRepository tickFormulaRepository,
     IMarketSettingsRepository marketSettingsRepository,
     IProductCategoriesRepository productCategoriesRepository,
     IUnderlyingsCache underlyingsCache,
     IAssetTypesRepository assetTypesRepository,
     ILog log,
     IBrokerSettingsApi brokerSettingsApi,
     string brokerId,
     IList <string> assetTypesWithZeroInterestRate)
 {
     _productsRepository = productsRepository;
     _clientProfileSettingsRepository = clientProfileSettingsRepository;
     _currenciesRepository            = currenciesRepository;
     _tickFormulaRepository           = tickFormulaRepository;
     _marketSettingsRepository        = marketSettingsRepository;
     _productCategoriesRepository     = productCategoriesRepository;
     _underlyingsCache     = underlyingsCache;
     _assetTypesRepository = assetTypesRepository;
     _log = log;
     _assetTypesWithZeroInterestRate = assetTypesWithZeroInterestRate;
     _brokerSettingsApi = brokerSettingsApi;
     _brokerId          = brokerId;
 }
 public static ICurrenciesRepository GetCurrencyRepository()
 {
     if (_currenciesRepository == null)
     {
         _currenciesRepository = new CurrenciesRepository();
     }
     return(_currenciesRepository);
 }
 public CurrenciesService(ICurrenciesRepository currenciesRepository, IAuditService auditService,
                          ICqrsMessageSender cqrsMessageSender,
                          IConvertService convertService)
 {
     _currenciesRepository = currenciesRepository;
     _auditService         = auditService;
     _cqrsMessageSender    = cqrsMessageSender;
     _convertService       = convertService;
 }
 public TransactionsController(ITransactionsRepository transactionsRepository,
                               ICurrenciesRepository currenciesRepository,
                               ICategoriesRepository categoriesRepository,
                               ITransactionTypesRepository transactionTypesRepository)
 {
     _transactions     = transactionsRepository;
     _currencies       = currenciesRepository;
     _categories       = categoriesRepository;
     _transactionTypes = transactionTypesRepository;
 }
 public AssetPairService(
     IProductsRepository productsRepository,
     ICurrenciesRepository currenciesRepository,
     ISettlementCurrencyService settlementCurrencyService,
     DefaultLegalEntitySettings defaultLegalEntitySettings)
 {
     _productsRepository         = productsRepository;
     _currenciesRepository       = currenciesRepository;
     _settlementCurrencyService  = settlementCurrencyService;
     _defaultLegalEntitySettings = defaultLegalEntitySettings;
 }
예제 #11
0
 public DbSeedRepository(DbRepositoryContext ctx,
                         IHttpContextAccessor httpContAcc,
                         UserManager <User> userMgr,
                         SignInManager <User> signInMgr,
                         IAccountsRepository accRepo,
                         IGroupsRepository grRepo,
                         ICurrenciesRepository crrRepo) : base(ctx, httpContAcc, userMgr, signInMgr)
 {
     accountsRepo   = accRepo;
     groupsRepo     = grRepo;
     currenciesRepo = crrRepo;
 }
예제 #12
0
 public CreditCardPaymentAppService(IRepository <CreditCardPayment, long> creditCardPaymentRepository,
                                    IRepository <Transaction, long> transactionRepository,
                                    IUserManager userManager,
                                    IRepository <User, long> userRepository,
                                    ICurrenciesRepository currenciesRepository)
 {
     _creditCardPaymentRepository = creditCardPaymentRepository;
     _transactionRepository       = transactionRepository;
     _userManager          = userManager;
     _userRepository       = userRepository;
     _currenciesRepository = currenciesRepository;
 }
예제 #13
0
 public ProductsBL(IProductsRepository productsRepository, IProductPhotosRepository productPhotosRepository,
                   IUserHostAddressesRepository userHostAddressesRepository, IProductViewingInfosRepository productViewingInfosRepository,
                   IUserStore <ApplicationUser> usersStore, ICurrenciesRepository currenciesRepository,
                   ICurrencyRatesRepository currencyRatesRepository)
 {
     _productsRepository            = productsRepository;
     _productPhotosRepository       = productPhotosRepository;
     _userHostAddressesRepository   = userHostAddressesRepository;
     _productViewingInfosRepository = productViewingInfosRepository;
     _usersStore              = usersStore;
     _currenciesRepository    = currenciesRepository;
     _currencyRatesRepository = currencyRatesRepository;
 }
 public RateSettingsService(
     IProductsRepository productsRepository,
     IUnderlyingsCache underlyingsCache,
     ICurrenciesRepository currenciesRepository,
     DefaultRateSettings defaultRateSettings,
     ILog log)
 {
     _productsRepository   = productsRepository;
     _underlyingsCache     = underlyingsCache;
     _currenciesRepository = currenciesRepository;
     _defaultRateSettings  = defaultRateSettings;
     _log = log;
 }
예제 #15
0
 public PaymentAppService
     (IRepository <Transaction, long> transactionRepository,
     IRepository <User, long> userRepository,
     IRepository <Payments.Payment, long> paymentRepository,
     IWalletAppService walletAppService,
     ICurrenciesRepository currenciesRepository)
 {
     _transactionRepository = transactionRepository;
     _userRepository        = userRepository;
     _paymentRepository     = paymentRepository;
     _walletAppService      = walletAppService;
     _currenciesRepository  = currenciesRepository;
 }
예제 #16
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;
 }
        public DataServiceController(IContractsRepository cntrcRep,
									 ITradersRepository trdrRep,
									 IOrdersRepository ordRep,
									 IInvoicesRepository invRep,
									 IItemsRepository itmRep,
									 IAirportsRepository airRep,
									 IAircraftsRepository acrRep,
                                     ICurrenciesRepository curRep)
        {
            _contractsRepository = cntrcRep;
            _tradersRepository = trdrRep;
            _ordersRepository = ordRep;
            _invoicesRepository = invRep;
            _itemsRepository = itmRep;
            _airportsRepository = airRep;
            _aircraftsRepository = acrRep;
            _currenciesRepository = curRep;
        }
예제 #18
0
 public PercentsCommand(IKeyboards keyboards, ICurrenciesRepository repo) : base(keyboards, repo)
 {
 }
예제 #19
0
 public DisplayCurrenciesCommand(IKeyboards keyboards, ICurrenciesRepository repo) : base(keyboards, repo)
 {
 }
예제 #20
0
 public CurrencyController(ICurrenciesRepository injectRepository)
 {
     this.repository = injectRepository;
 }
예제 #21
0
 public ValueCurrencyCommand(IKeyboards keyboards, ICurrenciesRepository repo) : base(keyboards, repo)
 {
 }
예제 #22
0
        public void PrepareRepositories(bool initialize = false)
        {
            // Kick the model creation process if not already created (hence force is false). In other words, do
            // not wait on any database activities. Without this, nothing happens unless some context activities take
            // place.
            _context = new AviTradeContext();
            if (initialize)
            {
                // Kick the model creation process if not already created (hence force is false). In other words, do
                // not wait on any database activities. Without this, nothing happens unless some context activities take
                // place.
                _context.Database.Initialize(force: false);
            }

            _contractsRepository = new ContractsRepository(_context);
            _airportsRepository = new AirportsRepository(_context);
            _aircraftsRepository = new AircraftsRepository(_context);
            _itemsRepository = new ItemsRepository(_context);
            _currenciesRepository = new CurrenciesRepository(_context);
            _periodsRepository = new PeriodsRepository(_context);
            _invoicesRepository = new InvoicesRepository(_context, _periodsRepository);
            _ordersRepository = new OrdersRepository(_context, _contractsRepository, _airportsRepository,
                                                     _aircraftsRepository, _itemsRepository, _currenciesRepository,
                                                     _invoicesRepository);
            _tradersRepository = new TradersRepository(_context);
        }
예제 #23
0
 public CalcCommand(IKeyboards keyboards, ICurrenciesRepository repo) : base(keyboards, repo)
 {
     charsToIgnore = $"/{Name.ToLower()}{Name.ToUpper()}".ToCharArray();
 }
예제 #24
0
 public StartCommand(IKeyboards keyboards, ICurrenciesRepository repo) : base(keyboards, repo)
 {
 }
예제 #25
0
 public Command(IKeyboards keyboards, ICurrenciesRepository repo)
 {
     Keyboards = keyboards;
     Repo      = repo;
     Client    = Bot.GetClient();
 }
 public CurrenciesManager(ICurrenciesRepository currenciesRepository, IRepository <SupportedCurrency, long> supportedCurrenciesRepository)
 {
     _currenciesRepository          = currenciesRepository;
     _supportedCurrenciesRepository = supportedCurrenciesRepository;
 }
예제 #27
0
 public PercentsWithSynonymsCommand(IKeyboards keyboards, ICurrenciesRepository repo) : base(keyboards, repo)
 {
     mainCommand = new PercentsCommand(keyboards, repo);
 }
 public CurrenciesService(ICurrenciesRepository currenciesRepository)
 {
     _currenciesRepository = currenciesRepository;
 }
예제 #29
0
 public ValueCurrencyKeyboardHandler(ICurrenciesRepository repo) : base(repo)
 {
 }
예제 #30
0
 public DisplayCurrenciesKeyboardHandler(ICurrenciesRepository repo) : base(repo)
 {
 }
예제 #31
0
 protected InlineKeyboardHandler(ICurrenciesRepository repo)
 {
     Repository = repo;
     Bot        = Models.Bot.GetClient();
 }
예제 #32
0
 public CurrenciesBL(ICurrenciesRepository currenciesRepository)
 {
     _currenciesRepository = currenciesRepository;
 }
예제 #33
0
        public void PrepareRepositories(bool initialize = false)
        {
            // Kick the model creation process if not already created (hence force is false). In other words, do
            // not wait on any database activities. Without this, nothing happens unless some context activities take
            // place.
            _context = new YContext();
            if (initialize)
            {
                // Kick the model creation process if not already created (hence force is false). In other words, do
                // not wait on any database activities. Without this, nothing happens unless some context activities take
                // place.
                _context.Database.Initialize(force: false);
            }

            _timeZonesRepository = new TimeZonesRepository(_context);
            _channelsRepository = new ChannelsRepository(_context);
            _contactsRepository = new ContactsRepository(_context);
            _regionsRepository = new RegionsRepository(_context);
            _countriesRepository = new CountriesRepository(_context);
            _currenciesRepository = new CurrenciesRepository(_context);
            _languagesRepository = new LanguagesRepository(_context);
            _merchantsRepository = new MerchantsRepository(_context);
            _memberTypesRepository = new MemberTypesRepository(_context);
            _investmentSchemesRepository = new InvestmentSchemesRepository(_context);
            _invoicesRepository = new InvoicesRepository(_context);
            _periodsRepository = new PeriodsRepository(_context);
            _sponsorsRepository = new SponsorsRepository(_context, _invoicesRepository);
            _payoutEventsRepository = new PayoutEventsRepository(_context);
            _investmentUnitsRepository = new InvestmentUnitsRepository(_context, _sponsorsRepository, _invoicesRepository, _payoutEventsRepository);
            _instancesRepository = new InstancesRepository(_context, _sponsorsRepository, _countriesRepository, _regionsRepository, _investmentSchemesRepository, _currenciesRepository);
            _membersRepository = new MembersRepository(_context, _channelsRepository, _contactsRepository, _languagesRepository, _currenciesRepository, _timeZonesRepository, _memberTypesRepository, _merchantsRepository, _sponsorsRepository, _countriesRepository);
            _enrollmentsRepository = new EnrollmentsRepository(_context, _periodsRepository);
            _purchasesRepository = new PurchasesRepository(_context, _periodsRepository, _invoicesRepository);
            _cashBackBonusesRepository = new CashBackBonusesRepository(_context);
            _adminFeesRepository = new AdminFeesRepository(_context);
            _accumulationReservesRepository = new AccumulationReservesRepository(_context, _investmentUnitsRepository);
            _referralBonusesRepository = new ReferralBonusesRepository(_context);
            _membershipsRepository = new MembershipsRepository(_context, _membersRepository, _enrollmentsRepository, _purchasesRepository, _cashBackBonusesRepository, _adminFeesRepository, _accumulationReservesRepository, _referralBonusesRepository, _instancesRepository, _merchantsRepository, _investmentUnitsRepository, _periodsRepository, _currenciesRepository);
            _yesrRepository = new YesrRepository(_context);
        }
예제 #34
0
 public static ICurrenciesRepository GetCurrencyRepository()
 {
     if (_currenciesRepository == null)
         _currenciesRepository = new CurrenciesRepository();
     return _currenciesRepository;
 }