public JobService(IJobQuery jobQuery, IJobRepository jobRepository, IJobValidator jobValidator)
 {
     _jobQuery      = jobQuery;
     _jobRepository = jobRepository;
     _jobValidator  = jobValidator;
 }
Esempio n. 2
0
 public JobsController(IJobProcessorService jobProcessorService, IJobService jobService, IJobValidator jobValidator)
 {
     _jobProcessorService = jobProcessorService;
     _jobService          = jobService ?? throw new ArgumentNullException(nameof(jobService));
     _jobValidator        = jobValidator ?? throw new ArgumentNullException(nameof(jobValidator));
 }