public JobReader( IScheduler scheduler, IJobConverter converter) { _scheduler = scheduler; _converter = converter; }
public TestContext() { _fixture = new Fixture().Customize(new AutoRhinoMockCustomization()); _jobId = _fixture.Create <Guid>(); _description = _fixture.Create <string>(); var jobDetail = new JobDetailImpl(_fixture.Create <string>(), typeof(JobExecutor)) { Key = JobKey.Create(_jobId.ToString()), Description = _description }; _fixture.Inject <IJobDetail>(jobDetail); _scheduler = _fixture.Freeze <IScheduler>(); _converter = _fixture.Freeze <IJobConverter>(); _sut = _fixture.Create <JobReader>(); _expected = new Job( _jobId, _description, _fixture.Create <Uri>(), _fixture.Create <HttpVerb>(), _fixture.Create <string>(), _fixture.Create <string>(), null, _fixture.Create <DateTime>()); }
public JobExecutor( IHttpClientWrapper client, IJobConverter converter, Stopwatch timer) { _client = client; _converter = converter; _timer = timer; }
public ConverterManager(IUnitIndexConverter unitIndexConverter, IUnitConverter unitConverter, IJobIndexConverter jobIndexConverter, IJobConverter jobConverter, IEventPublisher publisher, IJobPositionConverter jobPositionConverter, IEmployeeConverter employeeConverter, IPeriodServiceWrapper periodService, IUnitIndexInPeriodServiceWrapper unitIndexService, IJobIndexInPeriodServiceWrapper jobIndexService) { this.unitIndexConverter = unitIndexConverter; this.unitConverter = unitConverter; this.jobIndexConverter = jobIndexConverter; this.jobConverter = jobConverter; this.publisher = publisher; this.jobPositionConverter = jobPositionConverter; this.employeeConverter = employeeConverter; this.periodService = periodService; this.unitIndexService = unitIndexService; this.jobIndexService = jobIndexService; }
public TestContext() { _fixture = new Fixture().Customize(new AutoRhinoMockCustomization()); _fixture.Inject <IJobDetail>(new JobDetailImpl(_fixture.Create <string>(), typeof(JobExecutor))); _fixture.Inject <IOperableTrigger>(new SimpleTriggerImpl(_fixture.Create <string>())); var trigger = _fixture.Create <TriggerFiredBundle>(); var scheduler = _fixture.Create <IScheduler>(); var job = _fixture.Create <IJob>(); _context = new JobExecutionContextImpl(scheduler, trigger, job); _fixture.Customize <HttpResponseMessage>(c => c.With(m => m.StatusCode, HttpStatusCode.OK)); _client = _fixture.Freeze <IHttpClientWrapper>(); _converter = _fixture.Freeze <IJobConverter>(); _sut = _fixture.Create <JobExecutor>(); }
public TestContext() { _fixture = new Fixture().Customize(new AutoRhinoMockCustomization()); _sut = _fixture.Create <JobConverter>(); }