Example #1
0
 public DoctorService(MyDbContext context)
 {
     this._doctorRepository            = new DoctorRepository(context);
     this._operationRepository         = new OperationRepository(context);
     this._appointmentRepository       = new AppointmentRepository(context);
     this._employeesScheduleRepository = new EmployeesScheduleRepository(context);
     this.regularAppointmentService    = new RegularAppointmentService(_appointmentRepository, _employeesScheduleRepository, this, new PatientsRepository(context), new OperationService(_operationRepository));
 }
Example #2
0
 public DoctorService(IOperationRepository operationRepository, IAppointmentRepository appointmentRepository, IEmployeesScheduleRepository employeesScheduleRepository, IDoctorRepository doctorRepository)
 {
     this._doctorRepository            = doctorRepository;
     this._operationRepository         = operationRepository;
     this._appointmentRepository       = appointmentRepository;
     this._employeesScheduleRepository = employeesScheduleRepository;
     this.regularAppointmentService    = new RegularAppointmentService(appointmentRepository, employeesScheduleRepository, this, new PatientsRepository(), new OperationService(operationRepository));
 }
 public EmployeesScheduleService(IEmployeesScheduleRepository employeesScheduleRepository)
 {
     this._employeesScheduleRepository = employeesScheduleRepository;
 }
Example #4
0
 public RegularAppointmentService(IAppointmentRepository appointmentRepository, IEmployeesScheduleRepository employeesScheduleRepository, DoctorService doctorService, IPatientsRepository patientRepository, OperationService operationService)
 {
     this._appointmentRepository   = appointmentRepository;
     this.doctorService            = doctorService;
     this.employeesScheduleService = new EmployeesScheduleService(employeesScheduleRepository);
     this._patientRepository       = patientRepository;
     this.operationService         = operationService;
 }
Example #5
0
 public DoctorService(MyDbContext context)
 {
     _doctorRepository            = new DoctorRepository(context);
     _employeesScheduleRepository = new EmployeesScheduleRepository(context);
 }
Example #6
0
 public DoctorService(IEmployeesScheduleRepository employeesScheduleRepository, IDoctorRepository doctorRepository)
 {
     _doctorRepository            = doctorRepository;
     _employeesScheduleRepository = employeesScheduleRepository;
 }