Beispiel #1
0
 public void Setup()
 {
     _receiptRequestThreshold = 10000000000000000;
     _receiptsMergeThreshold  = 100000000000000000;
     _paymentClaimThreshold   = 1000000000000000000;
     _unitPrice = 100000000000000;
     _providerThresholdsService = Substitute.For <IProviderThresholdsService>();
 }
Beispiel #2
0
 public void Setup()
 {
     _receiptRequestThreshold = 10000000000000000;
     _receiptsMergeThreshold  = 100000000000000000;
     _paymentClaimThreshold   = 1000000000000000000;
     _configManager           = Substitute.For <IConfigManager>();
     _config     = new NdmConfig();
     _logManager = LimboLogs.Instance;
     _configManager.GetAsync(ConfigId).Returns(_config);
     _providerThresholdsService = new ProviderThresholdsService(_configManager, ConfigId, _logManager);
 }
 public NdmRpcProviderModule(IProviderService providerService, IReportService reportService,
                             IProviderTransactionsService providerTransactionsService, IProviderGasLimitsService gasLimitsService,
                             IGasPriceService gasPriceService, IProviderThresholdsService providerThresholdsService,
                             IDepositManager depositManager)
 {
     _providerService             = providerService;
     _reportService               = reportService;
     _providerTransactionsService = providerTransactionsService;
     _gasLimitsService            = gasLimitsService;
     _gasPriceService             = gasPriceService;
     _providerThresholdsService   = providerThresholdsService;
     _depositManager              = depositManager;
 }
 public ReceiptsPolicies(IProviderThresholdsService providerThresholdsService)
 {
     _providerThresholdsService = providerThresholdsService;
 }