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)); }
public ProfileService(UserManager <AppUser> userManager, IAccountService accountService, IRegisteredTxRepository registeredTxRepository, IEthTxCheckService ethTxCheckService, IUserBalanceRepository userBalanceRepository, IReferralCodeRepository referralCodeRepository, IBonusTxRepository bonusTxRepository, IBonusCalculationRepository bonusCalculationRepository) { this.userManager = userManager; this.accountService = accountService; this.registeredTxRepository = registeredTxRepository; this.ethTxCheckService = ethTxCheckService; this.userBalanceRepository = userBalanceRepository; this.referralCodeRepository = referralCodeRepository; this.bonusTxRepository = bonusTxRepository; this.bonusCalculationRepository = bonusCalculationRepository; }
public TipService(IUserBalanceRepository userBalanceRepository, IUserBalanceHistoryRepository userBalanceHistoryRepository, IWithdrawalRepository withdrawalRepository) { _userBalanceRepository = userBalanceRepository ?? throw new ArgumentNullException(nameof(userBalanceRepository)); _userBalanceHistoryRepository = userBalanceHistoryRepository ?? throw new ArgumentNullException(nameof(userBalanceHistoryRepository)); _withdrawalRepository = withdrawalRepository ?? throw new ArgumentNullException(nameof(withdrawalRepository)); }
public SettingsService(IBotService botService, IUserBalanceRepository userBalanceRepository) { _botService = botService ?? throw new ArgumentNullException(nameof(botService)); _userBalanceRepository = userBalanceRepository ?? throw new ArgumentNullException(nameof(userBalanceRepository)); }