Example #1
0
 public DebtService(IRepository <Debt> debtRepository, IRepository <Friend> friendRepository,
                    IHttpContextAccessor httpContextAccessor, IRepository <User> userRepository,
                    IRepository <Change> changeRepository, IHubContext <MainHub> hubContext,
                    IRepository <PayNotification> payNotificationRepository, IRepository <Notification> notificationRepository,
                    IRepository <Currency> currenciesRepository, IRepository <Payment> paymentRepository,
                    IStripeChargeService stripeChargeService, IHttpClientFactory clientFactory,
                    IExchangeRateService exchangeRateService)
 {
     _debtRepository         = debtRepository;
     _friendRepository       = friendRepository;
     _httpContextAccessor    = httpContextAccessor;
     _userRepository         = userRepository;
     _changeRepository       = changeRepository;
     _hubContext             = hubContext;
     _notificationRepository = notificationRepository;
     _currenciesRepository   = currenciesRepository;
     _paymentRepository      = paymentRepository;
     _stripeChargeService    = stripeChargeService;
     _exchangeRateService    = exchangeRateService;
 }
Example #2
0
 public ChargeController(IStripeChargeService chargeService)
 {
     _chargeService = chargeService;
 }