コード例 #1
0
 /// <summary>
 /// Initializes an instance of the <see cref="AppointmentSessionManager"/> class
 /// </summary>
 /// <param name="log"></param>
 /// <param name="apptSessionDal"></param>
 /// <param name="apptSlotDal"></param>
 /// <param name="userDal"></param>
 public AppointmentSessionManager(
     ILogger <AppointmentSessionManager> log,
     IAppointmentSessionDal apptSessionDal,
     IAppointmentSlotDal apptSlotDal,
     IUserDal userDal)
 {
     _log            = log ?? throw new ArgumentNullException(nameof(log));
     _apptSessionDal = apptSessionDal ?? throw new ArgumentNullException(nameof(apptSessionDal));
     _apptSlotDal    = apptSlotDal ?? throw new ArgumentNullException(nameof(apptSlotDal));
     _userDal        = userDal ?? throw new ArgumentNullException(nameof(userDal));
 }
コード例 #2
0
 /// <summary>
 /// Initializes an instance of the <see cref="AppointmentBookingManager"/>
 /// </summary>
 public AppointmentBookingManager(
     ILogger <AppointmentBookingManager> log,
     IUserDal userDal,
     IAppointmentSlotDal apptSlotDal,
     IPatientDal patientDal,
     IPatientsMedicalPractitionerDal patientsMedicalPractitionerDal,
     IAppointmentSessionDal sessionDal)
 {
     _log         = log ?? throw new ArgumentNullException(nameof(log));
     _userDal     = userDal ?? throw new ArgumentNullException(nameof(userDal));
     _apptSlotDal = apptSlotDal ?? throw new ArgumentNullException(nameof(apptSlotDal));
     _patientDal  = patientDal ?? throw new ArgumentNullException(nameof(patientDal));
     _patientsMedicalPractitionerDal = patientsMedicalPractitionerDal ?? throw new ArgumentNullException(nameof(patientsMedicalPractitionerDal));
     _sessionDal = sessionDal ?? throw new ArgumentNullException(nameof(sessionDal));
 }