public PushpayServiceTest()
        {
            _pushpayClient        = new Mock <IPushpayClient>();
            _donationService      = new Mock <IDonationService>();
            _mapper               = new Mock <IMapper>();
            _configurationWrapper = new Mock <IConfigurationWrapper>();

            _fixture = new PushpayService(_pushpayClient.Object, _donationService.Object, _mapper.Object, _configurationWrapper.Object);
        }
 public PaymentEventService(IBatchService batchService, IDepositService depositService, IDonationService donationService,
                            IPushpayService pushpayService)
 {
     _batchService    = batchService;
     _depositService  = depositService;
     _donationService = donationService;
     _pushpayService  = pushpayService;
     //_logger = logger;
 }
Пример #3
0
        public DepositService(IDepositRepository depositRepository, IMapper mapper, IPushpayService pushpayService, IConfigurationWrapper configurationWrapper, IRestClient restClient = null)
        {
            _depositRepository = depositRepository;
            _mapper            = mapper;
            _pushpayService    = pushpayService;
            _restClient        = restClient ?? new RestClient();

            _financePath = Environment.GetEnvironmentVariable("FINANCE_PATH") ??
                           configurationWrapper.GetMpConfigValue("CRDS-FINANCE", "FinanceMicroservicePath", true);

            _depositProcessingOffset = configurationWrapper.GetMpConfigIntValue("CRDS-FINANCE", "DepositProcessingOffset", true).GetValueOrDefault();
        }
 public WebhookController(IPushpayService pushpayService)
 {
     _pushpayService = pushpayService;
 }