public WalletsController(
     IBcnWalletUsageService bcnWalletUsageService,
     IWalletManager walletManager,
     IBlockchainAddressValidator blockchainAddressValidator)
 {
     _bcnWalletUsageService      = bcnWalletUsageService;
     _walletManager              = walletManager;
     _blockchainAddressValidator = blockchainAddressValidator;
 }
Ejemplo n.º 2
0
 public RefundService(
     IPaymentRequestService paymentRequestService,
     ITransactionsService transactionsService,
     ITransferService transferService,
     TimeSpan refundExpirationPeriod,
     ITransactionPublisher transactionPublisher,
     ILog log,
     IBlockchainAddressValidator blockchainAddressValidator)
 {
     _paymentRequestService =
         paymentRequestService ?? throw new ArgumentNullException(nameof(paymentRequestService));
     _transactionsService    = transactionsService ?? throw new ArgumentNullException(nameof(transactionsService));
     _transferService        = transferService ?? throw new ArgumentNullException(nameof(transferService));
     _refundExpirationPeriod = refundExpirationPeriod;
     _transactionPublisher   =
         transactionPublisher ?? throw new ArgumentNullException(nameof(transactionPublisher));
     _log = log ?? throw new ArgumentNullException(nameof(log));
     _blockchainAddressValidator = blockchainAddressValidator ??
                                   throw new ArgumentNullException(nameof(blockchainAddressValidator));
 }
 public RefundService(
     [NotNull] IPaymentRequestService paymentRequestService,
     [NotNull] ITransactionsService transactionsService,
     [NotNull] ITransferService transferService,
     TimeSpan refundExpirationPeriod,
     [NotNull] ITransactionPublisher transactionPublisher,
     [NotNull] ILogFactory logFactory,
     [NotNull] IBlockchainAddressValidator blockchainAddressValidator)
 {
     _paymentRequestService =
         paymentRequestService ?? throw new ArgumentNullException(nameof(paymentRequestService));
     _transactionsService    = transactionsService ?? throw new ArgumentNullException(nameof(transactionsService));
     _transferService        = transferService ?? throw new ArgumentNullException(nameof(transferService));
     _refundExpirationPeriod = refundExpirationPeriod;
     _transactionPublisher   =
         transactionPublisher ?? throw new ArgumentNullException(nameof(transactionPublisher));
     _log = logFactory.CreateLog(this);
     _blockchainAddressValidator = blockchainAddressValidator ??
                                   throw new ArgumentNullException(nameof(blockchainAddressValidator));
 }