public RescheduleJobPsUnitTests()
        {
            _jobMaker = new TestJobMaker();
            var scheduler = new JobManagmentSystem.Scheduler.Scheduler(NullLogger <JobManagmentSystem.Scheduler.Scheduler> .Instance);
            var options   = Options.Create(new FileStorage
            {
                StoragePath = $"{nameof(RescheduleJobPsUnitTests)}.ndjson"
            });
            IPersistStorage storage = new JobsFileStorage(NullLogger <JobsFileStorage> .Instance, options);

            _persistentScheduler = new PersistentScheduler(scheduler, storage,
                                                           NullLogger <PersistentScheduler> .Instance);
        }
Пример #2
0
 public Schedule(CustomWebApplicationFactory <Startup> factory)
 {
     _client   = factory.CreateClient();
     _jobMaker = new TestJobMaker();
 }
 public GetJobUnitTests()
 {
     _jobMaker  = new TestJobMaker();
     _scheduler =
         new JobManagmentSystem.Scheduler.Scheduler(NullLogger <JobManagmentSystem.Scheduler.Scheduler> .Instance);
 }