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 SubmitOrder(ISubmitOrderRepository orderRepository, IEmployeeReadOnlyRepository employeeRepository, IClientReadOnlyRepository clientRepository, IComputerStockRepository computerStock, IComponentStock componentStock) { this.orderRepository = orderRepository; this.employeeRepository = employeeRepository; this.clientRepository = clientRepository; this.computerStock = computerStock; this.componentStock = componentStock; }
public ClientService( IClientRepository clientRepository, IClientReadOnlyRepository clientReadOnlyRepository) : base(clientRepository, clientReadOnlyRepository) { this.clientRepository = clientRepository; this.clientReadOnlyRepository = clientReadOnlyRepository; }
public CreateClient(ICreate <Client> create, IClientReadOnlyRepository read) { this.create = create; this.read = read; }
public RequestAppointment(IClientReadOnlyRepository clientReadOnlyRepository, IPatientReadOnlyRepository patientReadOnlyRepository) { _clientReadOnlyRepository = clientReadOnlyRepository; _patientReadOnlyRepository = patientReadOnlyRepository; }
public DeleteClient(IDeleteByName delete, IClientReadOnlyRepository readClient) { this.delete = delete; read = readClient; }
public OrderReadOnlyRepository(IConnection connection, IComputerReadOnlyRepository computerRepository, IEmployeeReadOnlyRepository employeeRepository, IClientReadOnlyRepository clientRepository) : base(connection) { ComputerRepository = computerRepository; EmployeeRepository = employeeRepository; ClientRepository = clientRepository; }
public ReadClient(IClientReadOnlyRepository read) { this.read = read; }
public RegisterPatient(IPatientWriteOnlyRepository patientWriteOnlyRepository, IClientReadOnlyRepository clientReadOnlyRepository) { _patientWriteOnlyRepository = patientWriteOnlyRepository; _clientReadOnlyRepository = clientReadOnlyRepository; }
public ClientController(Startup.DeleteByNameResolver deleteAccesor, IClientReadOnlyRepository readClient, ICreate <Client> createClient) { delete = new DeleteClient(deleteAccesor(DeletesEmail.Client), readClient); create = new CreateClient(createClient, readClient); read = new ReadClient(readClient); }
public SubscriptionService(ISubscriptionReadOnlyRepository subscriptionReadOnlyRepository, ISubscriptionWriteOnlyRepository subscriptionWriteOnlyRepository, IClientReadOnlyRepository clientReadOnlyRepository) { this.subscriptionReadOnlyRepository = subscriptionReadOnlyRepository ?? throw new ArgumentNullException(nameof(subscriptionReadOnlyRepository)); this.subscriptionWriteOnlyRepository = subscriptionWriteOnlyRepository ?? throw new ArgumentNullException(nameof(subscriptionWriteOnlyRepository)); this.clientReadOnlyRepository = clientReadOnlyRepository ?? throw new ArgumentNullException(nameof(clientReadOnlyRepository)); }