Exemple #1
0
 public ActionsService(IActionsResposit actionsService, IStaffResposit staffResposit, IJobresposit jobresposit, IJobactionResposit jobactionResposit)
 {
     _baseRepository    = actionsService;
     _actionsService    = actionsService ?? throw new ArgumentNullException(nameof(actionsService));
     _staffResposit     = staffResposit ?? throw new ArgumentNullException(nameof(staffResposit));
     _jobresposit       = jobresposit ?? throw new ArgumentNullException(nameof(jobresposit));
     _jobactionResposit = jobactionResposit ?? throw new ArgumentNullException(nameof(jobactionResposit));
 }
Exemple #2
0
 public JobService(IJobresposit jobresposit,
                   IStaffService staffService,
                   IRoleResposit roleResposit
                   )
 {
     _jobresposit  = jobresposit ?? throw new ArgumentNullException(nameof(jobresposit));
     _staffService = staffService ?? throw new ArgumentNullException(nameof(staffService));
     _roleResposit = roleResposit ?? throw new ArgumentNullException(nameof(roleResposit));
 }
Exemple #3
0
 public StaffService(IStaffResposit staffResposit,
                     IJobresposit jobresposit,
                     IRoleResposit roleResposit,
                     IEntrysResposit entrysResposit,
                     IProcessStepRecordResposit processStepRecordResposit,
                     ILeaveOfficeResposit leaveOfficeResposit)
 {
     _staffResposit             = staffResposit ?? throw new ArgumentNullException(nameof(staffResposit));
     _jobresposit               = jobresposit ?? throw new ArgumentNullException(nameof(jobresposit));
     _roleResposit              = roleResposit ?? throw new ArgumentNullException(nameof(roleResposit));
     _entrysResposit            = entrysResposit ?? throw new ArgumentNullException(nameof(entrysResposit));
     _processStepRecordResposit = processStepRecordResposit ?? throw new ArgumentNullException(nameof(processStepRecordResposit));
     _leaveOfficeResposit       = leaveOfficeResposit ?? throw new ArgumentNullException(nameof(leaveOfficeResposit));
 }