public AuthorizationService( IAuthorizationRepository authorizationRepository, IChallengeService challengeService, IAccountService accountService, IAccountSecurityService accountSecurityService, IOptions <ServerOptions> options) : base(options) { AuthorizationRepository = authorizationRepository ?? throw new ArgumentNullException(nameof(authorizationRepository)); ChallengeService = challengeService ?? throw new ArgumentNullException(nameof(challengeService)); AccountService = accountService ?? throw new ArgumentNullException(nameof(accountService)); AccountSecurityService = accountSecurityService ?? throw new ArgumentNullException(nameof(accountSecurityService)); }
public OrderService( IOrderRepository orderRepository, IAccountService accountService, IAccountSecurityService accountSecurityService, IAuthorizationService authorizationService, IOrderAuthorizationRepository orderAuthorizationRepository, ICertificateEnrollmentService certificateEnrollmentService, IOptions <ServerOptions> options) : base(options) { OrderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); AccountService = accountService ?? throw new ArgumentNullException(nameof(accountService)); AccountSecurityService = accountSecurityService ?? throw new ArgumentNullException(nameof(accountSecurityService)); AuthorizationService = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService)); OrderAuthorizationRepository = orderAuthorizationRepository ?? throw new ArgumentNullException(nameof(orderAuthorizationRepository)); CertificateEnrollmentService = certificateEnrollmentService ?? throw new ArgumentNullException(nameof(certificateEnrollmentService)); }