public TestConductor( IEnumerable <ITester> testers, AlertHub alertHub, HealingExecutor healingExecutor) { _testers = testers; _alertHub = alertHub; _healingExecutor = healingExecutor; _tasks = new List <Task <MetricResult> >(); }
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; }