public UsersAppService(ISubscriptionRepository subscriptionRepository, ISubscriptionCycleRepository subscriptionCycleRepository, IRepository <SubscriptionCycleOrder, Guid> subscriptionCycleOrderRepository, IOrderRepository orderRepository, IRepository <Invoice, Guid> invoiceRepository, IRepository <ProductSaleOrder, Guid> productSaleOrderRepository, IRepository <InvoicePaymentProvider, Guid> invoicePaymentProviderRepository, IRepository <InvoiceWebhook, Guid> invoiceWebhookRepository, IRepository <Notification, Guid> notificationRepository) { _subscriptionRepository = subscriptionRepository ?? throw new ArgumentNullException(nameof(subscriptionRepository)); _subscriptionCycleRepository = subscriptionCycleRepository ?? throw new ArgumentNullException(nameof(subscriptionCycleRepository)); _subscriptionCycleOrderRepository = subscriptionCycleOrderRepository ?? throw new ArgumentNullException(nameof(subscriptionCycleOrderRepository)); _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); _invoiceRepository = invoiceRepository ?? throw new ArgumentNullException(nameof(invoiceRepository)); _invoicePaymentProviderRepository = invoicePaymentProviderRepository ?? throw new ArgumentNullException(nameof(invoicePaymentProviderRepository)); _invoiceWebhookRepository = invoiceWebhookRepository ?? throw new ArgumentNullException(nameof(invoiceWebhookRepository)); _notificationRepository = notificationRepository ?? throw new ArgumentNullException(nameof(notificationRepository)); _productSaleOrderRepository = productSaleOrderRepository ?? throw new ArgumentNullException(nameof(productSaleOrderRepository)); }
public JobAppService(ISubscriptionRepository subscriptionRepository, ISubscriptionCycleRepository subscriptionCycleRepository, IRepository <SubscriptionCycleOrder, Guid> subscriptionCycleOrderRepository, IRepository <Notification, Guid> notificationRepository, INotificationDomainService notificationDomainService, IPlanPriceRepository planPriceRepository, IOrderRepository orderRepository, IRepository <Invoice, Guid> invoiceRepository, IRepository <InvoicePaymentProvider, Guid> invoicePaymentProviderRepository, IOrderDomainService orderDomainService, ISubscriptionDomainService subscriptionDomainService, ISubscriptionCycleDomainService subscriptionCycleDomainService, ISubscriptionCycleOrderDomainService subscriptionCycleOrderDomainService, IInvoiceDomainService invoiceDomainService, IObjectMapper mapper, IPaypalService paypalService, IMobbexService mobbexService, IClientOptions clientOptions, IHttpClientFactory httpClientFactory) { _subscriptionRepository = subscriptionRepository ?? throw new ArgumentNullException(nameof(subscriptionRepository)); _subscriptionCycleRepository = subscriptionCycleRepository ?? throw new ArgumentNullException(nameof(subscriptionCycleRepository)); _subscriptionCycleOrderRepository = subscriptionCycleOrderRepository ?? throw new ArgumentNullException(nameof(subscriptionCycleOrderRepository)); _noticationRepository = notificationRepository ?? throw new ArgumentNullException(nameof(notificationRepository)); _notificationDomainService = notificationDomainService ?? throw new ArgumentNullException(nameof(notificationDomainService)); _planPriceRepository = planPriceRepository ?? throw new ArgumentNullException(nameof(planPriceRepository)); _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); _invoiceRepository = invoiceRepository ?? throw new ArgumentNullException(nameof(invoiceRepository)); _invoicePaymentProviderRepository = invoicePaymentProviderRepository ?? throw new ArgumentNullException(nameof(invoicePaymentProviderRepository)); _orderDomainService = orderDomainService ?? throw new ArgumentNullException(nameof(orderDomainService)); _subscriptionDomainService = subscriptionDomainService ?? throw new ArgumentNullException(nameof(subscriptionDomainService)); _subscriptionCycleDomainService = subscriptionCycleDomainService ?? throw new ArgumentNullException(nameof(subscriptionCycleDomainService)); _subscriptionCycleOrderDomainService = subscriptionCycleOrderDomainService ?? throw new ArgumentNullException(nameof(subscriptionCycleOrderDomainService)); _invoiceDomainService = invoiceDomainService ?? throw new ArgumentNullException(nameof(invoiceDomainService)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _paypalService = paypalService ?? throw new ArgumentNullException(nameof(paypalService)); _mobbexService = mobbexService ?? throw new ArgumentNullException(nameof(mobbexService)); _clientOptions = clientOptions ?? throw new ArgumentNullException(nameof(clientOptions)); _httpClient = httpClientFactory?.CreateClient() ?? throw new ArgumentNullException(nameof(httpClientFactory)); }