Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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);
 }