public CollectController( ICollectRequestRepository repository, IScheduler scheduler, IScheduleController schedulerController, IProbeManager probeManager, ICollectRequestAssembler collectAssembler, ICollectResultAssembler resultAssembler, ICollectPackageAssembler packageAssembler, IDefinitionDocumentFactory definitionDocumentFactory) { this.Scheduler = scheduler; this.Repository = repository; this.ProbeManager = probeManager; this.ScheduleController = schedulerController; this.CollectAssembler = collectAssembler; this.ResultAssembler = resultAssembler; this.PackageAssembler = packageAssembler; this.DefinitionFactory = definitionDocumentFactory; this.ProbeManager.LoadProbes(); if (!this.ScheduleController.ReschedulingAlreadyExecuted) this.ReScheduleCollectRequestWasNotExecuted(); else this.CheckForTimeout(); ReadUsersSection(); }
public CollectController( ICollectRequestRepository repository, IScheduler scheduler, IScheduleController schedulerController, IProbeManager probeManager, ICollectRequestAssembler collectAssembler, ICollectResultAssembler resultAssembler, ICollectPackageAssembler packageAssembler, IDefinitionDocumentFactory definitionDocumentFactory) { this.Scheduler = scheduler; this.Repository = repository; this.ProbeManager = probeManager; this.ScheduleController = schedulerController; this.CollectAssembler = collectAssembler; this.ResultAssembler = resultAssembler; this.PackageAssembler = packageAssembler; this.DefinitionFactory = definitionDocumentFactory; this.ProbeManager.LoadProbes(); if (!this.ScheduleController.ReschedulingAlreadyExecuted) { this.ReScheduleCollectRequestWasNotExecuted(); } else { this.CheckForTimeout(); } ReadUsersSection(); }
public void Initialize() { DataProvider = new LocalDataProvider(); SessionDefault = this.GetSession(); Repository = new CollectRequestRepository(DataProvider); FakeScheduler = MockRepository.GenerateMock <IScheduler>(); fakeProbeManager = MockRepository.GenerateMock <IProbeManager>(); fakeScheduleController = MockRepository.GenerateMock <IScheduleController>(); definitionFactory = new DefinitionDocumentFactory(DataProvider); fakeCollectAssembler = new CollectRequestAssembler(DataProvider); fakeResultAssembler = new CollectResultAssembler(); fakePackageAssembler = new CollectPackageAssembler(DataProvider); CollectController = new CollectController(Repository, FakeScheduler, fakeScheduleController, fakeProbeManager, fakeCollectAssembler, fakeResultAssembler, fakePackageAssembler, definitionFactory); }
public void Initialize() { DataProvider = new LocalDataProvider(); SessionDefault = this.GetSession(); Repository = new CollectRequestRepository(DataProvider); FakeScheduler = MockRepository.GenerateMock<IScheduler>(); fakeProbeManager = MockRepository.GenerateMock<IProbeManager>(); fakeScheduleController = MockRepository.GenerateMock<IScheduleController>(); definitionFactory = new DefinitionDocumentFactory(DataProvider); fakeCollectAssembler = new CollectRequestAssembler(DataProvider); fakeResultAssembler = new CollectResultAssembler(); fakePackageAssembler = new CollectPackageAssembler(DataProvider); CollectController = new CollectController(Repository, FakeScheduler, fakeScheduleController, fakeProbeManager, fakeCollectAssembler, fakeResultAssembler, fakePackageAssembler, definitionFactory); }