Esempio n. 1
0
 public TestConductor(
     IEnumerable <ITester> testers,
     AlertHub alertHub,
     HealingExecutor healingExecutor)
 {
     _testers         = testers;
     _alertHub        = alertHub;
     _healingExecutor = healingExecutor;
     _tasks           = new List <Task <MetricResult> >();
 }
Esempio n. 2
0
 public TimedTestExecutor(
     IEnumerable <ITester> testers,
     IRepository <MetricResult> repository,
     AlertHub alertHub,
     HealingExecutor healingExecutor)
 {
     _testers         = testers.ToList();
     _repository      = repository;
     _alertHub        = alertHub;
     _healingExecutor = healingExecutor;
     _timer           = new Timer(ConfigurationService.Instance.Get <int>(Constants.WaitBetweenTestsSec) * 1000);
     _timer.Elapsed  += (sender, args) => Execute();
     _timer.AutoReset = false;
 }