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)); }
public OilMaterialOrderService( IOilMaterialOrderResposit oilMaterialOrderService, IOilMaterialOrderDetailResposit oilMaterialOrderDetailResposit, IStaffResposit staffResposit, IProcessStepRecordResposit processStepRecordResposit ) { _oilMaterialOrderResposit = oilMaterialOrderService ?? throw new ArgumentNullException(nameof(oilMaterialOrderService)); _oilMaterialOrderDetailResposit = oilMaterialOrderDetailResposit ?? throw new ArgumentNullException(nameof(oilMaterialOrderDetailResposit)); _staffResposit = staffResposit ?? throw new ArgumentNullException(nameof(staffResposit)); _processStepRecordResposit = processStepRecordResposit ?? throw new ArgumentNullException(nameof(processStepRecordResposit)); }
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)); }