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));
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 public ClientService(
     IClientRepository clientRepository,
     IClientReadOnlyRepository clientReadOnlyRepository)
     : base(clientRepository, clientReadOnlyRepository)
 {
     this.clientRepository         = clientRepository;
     this.clientReadOnlyRepository = clientReadOnlyRepository;
 }
Exemple #4
0
 public CreateClient(ICreate <Client> create, IClientReadOnlyRepository read)
 {
     this.create = create;
     this.read   = read;
 }
 public RequestAppointment(IClientReadOnlyRepository clientReadOnlyRepository,
                           IPatientReadOnlyRepository patientReadOnlyRepository)
 {
     _clientReadOnlyRepository  = clientReadOnlyRepository;
     _patientReadOnlyRepository = patientReadOnlyRepository;
 }
Exemple #6
0
 public DeleteClient(IDeleteByName delete, IClientReadOnlyRepository readClient)
 {
     this.delete = delete;
     read        = readClient;
 }
Exemple #7
0
 public OrderReadOnlyRepository(IConnection connection, IComputerReadOnlyRepository computerRepository, IEmployeeReadOnlyRepository employeeRepository, IClientReadOnlyRepository clientRepository) : base(connection)
 {
     ComputerRepository = computerRepository;
     EmployeeRepository = employeeRepository;
     ClientRepository   = clientRepository;
 }
Exemple #8
0
 public ReadClient(IClientReadOnlyRepository read)
 {
     this.read = read;
 }
 public RegisterPatient(IPatientWriteOnlyRepository patientWriteOnlyRepository,
                        IClientReadOnlyRepository clientReadOnlyRepository)
 {
     _patientWriteOnlyRepository = patientWriteOnlyRepository;
     _clientReadOnlyRepository   = clientReadOnlyRepository;
 }
Exemple #10
0
 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);
 }
Exemple #11
0
 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));
 }