public PrivateMessageService(IOptions <BotConfiguration> botConfiguration, IBotService botService, IWalletUserRepository walletUserRepository,
                              IWithdrawalService withdrawalService, ISettingsService settingsService)
 {
     _botConfiguration     = botConfiguration ?? throw new ArgumentNullException(nameof(botConfiguration));
     _botService           = botService ?? throw new ArgumentNullException(nameof(botService));
     _walletUserRepository = walletUserRepository;
     _withdrawalService    = withdrawalService ?? throw new ArgumentNullException(nameof(withdrawalService));
     _settingsService      = settingsService ?? throw new ArgumentNullException(nameof(settingsService));
 }
Beispiel #2
0
 public CardTransactionRepository(WalletContext context,
                                  ILogger <CardTransactionRepository> logger,
                                  ICardRepository cardRepo,
                                  IWalletUserRepository userRepo,
                                  IUserManagment userManagment)
     : base(context, logger, userManagment)
 {
     _cardRepo = cardRepo;
     _userRepo = userRepo;
 }
Beispiel #3
0
 public ValidateApiUserImpl(ILoggerFactory loggerFactory,
                            IOptions <ApiSettings> apiOptions,
                            IWalletUserRepository userRepository,
                            IUserManagment userManagment)
 {
     _logger         = loggerFactory.CreateLogger <ValidateApiUserImpl>();
     _apiOptions     = apiOptions.Value;
     _userRepository = userRepository;
     _userManagment  = userManagment;
 }
 public WithdrawalService(ILogger <IWithdrawalService> logger, IWalletUserRepository walletUserRepository, IBotService botService,
                          INodeExecutionService nodeExecutionService, IWithdrawalRepository withdrawalRepository, IMhcHttpClient mhcHttpClient, IUserBalanceRepository userBalanceRepository)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _walletUserRepository =
         walletUserRepository ?? throw new ArgumentNullException(nameof(walletUserRepository));
     _botService           = botService ?? throw new ArgumentNullException(nameof(botService));
     _nodeExecutionService =
         nodeExecutionService ?? throw new ArgumentNullException(nameof(nodeExecutionService));
     _withdrawalRepository  = withdrawalRepository ?? throw new ArgumentNullException(nameof(withdrawalRepository));
     _mhcHttpClient         = mhcHttpClient ?? throw new ArgumentNullException(nameof(mhcHttpClient));
     _userBalanceRepository = userBalanceRepository ?? throw new ArgumentNullException(nameof(userBalanceRepository));
 }
 public TransactionHandlerService(ILogger <ITransactionHandlerService> logger, IOptions <BotConfiguration> botConfiguration,
                                  IMhcHttpClient mhcHttpClient, ITransactionHistoryRepository transactionHistoryRepository,
                                  ITransactionCheckHistoryRepository transactionCheckHistoryRepository,
                                  IWalletUserRepository walletUserRepository, IUserBalanceRepository userBalanceRepository,
                                  IUserBalanceHistoryRepository userBalanceHistoryRepository, IBotService botService)
 {
     _logger                            = logger ?? throw new ArgumentNullException(nameof(logger));
     _botConfiguration                  = botConfiguration ?? throw new ArgumentNullException(nameof(botConfiguration));
     _mhcHttpClient                     = mhcHttpClient ?? throw new ArgumentNullException(nameof(mhcHttpClient));
     _transactionHistoryRepository      = transactionHistoryRepository ?? throw new ArgumentNullException(nameof(transactionHistoryRepository));
     _transactionCheckHistoryRepository = transactionCheckHistoryRepository ?? throw new ArgumentNullException(nameof(transactionCheckHistoryRepository));
     _walletUserRepository              = walletUserRepository ?? throw new ArgumentNullException(nameof(walletUserRepository));
     _userBalanceRepository             = userBalanceRepository ?? throw new ArgumentNullException(nameof(userBalanceRepository));
     _userBalanceHistoryRepository      = userBalanceHistoryRepository ?? throw new ArgumentNullException(nameof(userBalanceHistoryRepository));
     _botService                        = botService ?? throw new ArgumentNullException(nameof(botService));
 }
Beispiel #6
0
 public WalletUserController(IWalletUserRepository repo,
                             ILogger <WalletUserController> logger,
                             IMapper mapper)
     : base(repo, logger, mapper)
 {
 }
Beispiel #7
0
 public TopUpService(IOptions <BotConfiguration> botConfiguration, IWalletUserRepository walletUserRepository, IBotService botService)
 {
     _botConfiguration     = botConfiguration ?? throw new ArgumentNullException(nameof(botConfiguration));
     _walletUserRepository = walletUserRepository ?? throw new ArgumentNullException(nameof(walletUserRepository));
     _botService           = botService ?? throw new ArgumentNullException(nameof(botService));
 }
 public WalletUserBusiness()
 {
     _repo = new WalletUserRepository();
 }