public ClientService(IEmailAdapter emailAdapter, IClientReadOnlyRepository clientReadOnlyRepository, IClientWriteOnlyRepository clientWriteOnlyRepository, ApplicationConfiguration applicationConfiguration, ISubscriptionService subscriptionService) { this.emailAdapter = emailAdapter ?? throw new ArgumentNullException(nameof(emailAdapter)); this.clientReadOnlyRepository = clientReadOnlyRepository ?? throw new ArgumentNullException(nameof(clientReadOnlyRepository)); this.clientWriteOnlyRepository = clientWriteOnlyRepository ?? throw new ArgumentNullException(nameof(clientWriteOnlyRepository)); this.applicationConfiguration = applicationConfiguration ?? throw new ArgumentNullException(nameof(applicationConfiguration)); this.subscriptionService = subscriptionService ?? throw new ArgumentNullException(nameof(subscriptionService)); }
public RegisterClient(IClientWriteOnlyRepository clientWriteOnlyRepository) { _clientWriteOnlyRepository = clientWriteOnlyRepository; }