public RegularAppointmentService(MyDbContext context) { this._appointmentRepository = new AppointmentRepository(context); this._patientRepository = new PatientsRepository(context); this.operationService = new OperationService(new OperationRepository(context)); this.employeesScheduleService = new EmployeesScheduleService(new EmployeesScheduleRepository(context)); this.doctorService = new DoctorService(new OperationRepository(context), _appointmentRepository, new EmployeesScheduleRepository(context), new DoctorRepository(context)); }
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; }