/// <summary>
 /// Initialise an instance of the <see cref="PatientRecordController"/>
 /// </summary>
 /// <param name="log"></param>
 /// <param name="patientRecordSvc"></param>
 /// <param name="userAdminSvc"></param>
 /// <param name="patientAdminSvc"></param>
 /// <param name="appointmentBookService"></param>
 public PatientRecordController(
     ILogger <PatientRecordController> log,
     IPatientRecordService patientRecordSvc,
     IUserAdministrationService userAdminSvc,
     IPatientAdministrationService patientAdminSvc,
     IAppointmentBookService appointmentBookService)
 {
     _log = log ?? throw new ArgumentNullException(nameof(log));
     _patientRecordSvc       = patientRecordSvc ?? throw new ArgumentNullException(nameof(patientRecordSvc));
     _userAdminSvc           = userAdminSvc ?? throw new ArgumentNullException(nameof(userAdminSvc));
     _patientAdminSvc        = patientAdminSvc ?? throw new ArgumentNullException(nameof(patientAdminSvc));
     _appointmentBookService = appointmentBookService;
 }
Example #2
0
 public AppointmentBookController(ILogger <AppointmentBookController> log,
                                  IAppointmentBookService apptSvc)
 {
     _log     = log ?? throw new ArgumentNullException(nameof(log));
     _apptSvc = apptSvc ?? throw new ArgumentNullException(nameof(apptSvc));
 }