public ValidateRequestedPaidTimeOffHoursQueryHandler( IApplicationReadDbFacade facade, PaidTimeOffRequestService paidTimeOffRequestService, IViewModelToDomainEntityMapper <ValidateRequestedPaidTimeOffHoursViewModel, PaidTimeOffRequest> mapper) { this.facade = facade ?? throw new ArgumentNullException(nameof(facade)); this.paidTimeOffRequestService = paidTimeOffRequestService ?? throw new ArgumentNullException(nameof(paidTimeOffRequestService)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public SubmitNewPaidTimeOffRequestCommandHandler( IApplicationWriteDbContext context, IApplicationWriteDbFacade facade, PaidTimeOffRequestService paidTimeOffRequestService, IModelMapper mapper) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.facade = facade ?? throw new ArgumentNullException(nameof(facade)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); this.paidTimeOffRequestService = paidTimeOffRequestService ?? throw new ArgumentNullException(nameof(paidTimeOffRequestService)); }
public GetPaidTimeOffRequestsForTenantQueryHandler( IApplicationWriteDbContext context, PaidTimeOffRequestService paidTimeOffRequestService, IDbEntityToDomainEntityMapper <PaidTimeOffRequestEntity, PaidTimeOffRequest> dbEntityMapper, IDomainEntityToViewModelMapper <PaidTimeOffRequest, PaidTimeOffRequestViewModel> domainEntityMapper ) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.paidTimeOffRequestService = paidTimeOffRequestService ?? throw new ArgumentNullException(nameof(paidTimeOffRequestService)); this.dbEntityMapper = dbEntityMapper ?? throw new ArgumentNullException(nameof(dbEntityMapper)); this.domainEntityMapper = domainEntityMapper ?? throw new ArgumentNullException(nameof(domainEntityMapper)); }