private void WireUpEvents() { _model.Events.TestLoaded += (ea) => { _view.Initialize(100); }; _model.Events.TestUnloaded += (ea) => { _view.Initialize(100); }; _model.Events.TestReloaded += (ea) => { _view.Initialize(100); }; _model.Events.RunStarting += (ea) => { _view.Initialize(ea.TestCount); }; _model.Events.TestFinished += (ea) => { _view.Progress++; CheckStatus(ea.Result.Outcome); }; _model.Events.SuiteFinished += (ea) => { CheckStatus(ea.Result.Outcome); }; }
public void Initialize(int max) { _progressBar.Initialize(max); }