public TestExplorerViewModel(VBE vbe, ITestEngine testEngine, TestExplorerModelBase model, IClipboardWriter clipboard) { _testEngine = testEngine; _testEngine.TestCompleted += TestEngineTestCompleted; _model = model; _clipboard = clipboard; _navigateCommand = new NavigateCommand(); _runAllTestsCommand = new RunAllTestsCommand(testEngine, model); _addTestModuleCommand = new AddTestModuleCommand(vbe); _addTestMethodCommand = new AddTestMethodCommand(vbe, model); _addErrorTestMethodCommand = new AddTestMethodExpectedErrorCommand(vbe, model); _refreshCommand = new DelegateCommand(ExecuteRefreshCommand, CanExecuteRefreshCommand); _repeatLastRunCommand = new DelegateCommand(ExecuteRepeatLastRunCommand, CanExecuteRepeatLastRunCommand); _runNotExecutedTestsCommand = new DelegateCommand(ExecuteRunNotExecutedTestsCommand, CanExecuteRunNotExecutedTestsCommand); _runFailedTestsCommand = new DelegateCommand(ExecuteRunFailedTestsCommand, CanExecuteRunFailedTestsCommand); _runPassedTestsCommand = new DelegateCommand(ExecuteRunPassedTestsCommand, CanExecuteRunPassedTestsCommand); _runSelectedTestCommand = new DelegateCommand(ExecuteSelectedTestCommand, CanExecuteSelectedTestCommand); _copyResultsCommand = new DelegateCommand(ExecuteCopyResultsCommand); }
public TestExplorerViewModel(VBE vbe, ITestEngine testEngine, TestExplorerModelBase model, IClipboardWriter clipboard) { _testEngine = testEngine; _testEngine.TestCompleted += TestEngineTestCompleted; _model = model; _clipboard = clipboard; _navigateCommand = new NavigateCommand(); _runAllTestsCommand = new RunAllTestsCommand(testEngine, model); _addTestModuleCommand = new AddTestModuleCommand(vbe); _addTestMethodCommand = new AddTestMethodCommand(vbe, model); _addErrorTestMethodCommand = new AddTestMethodExpectedErrorCommand(vbe, model); _refreshCommand = new DelegateCommand(ExecuteRefreshCommand, CanExecuteRefreshCommand); _repeatLastRunCommand = new DelegateCommand(ExecuteRepeatLastRunCommand, CanExecuteRepeatLastRunCommand); _runNotExecutedTestsCommand = new DelegateCommand(ExecuteRunNotExecutedTestsCommand, CanExecuteRunNotExecutedTestsCommand); _runFailedTestsCommand = new DelegateCommand(ExecuteRunFailedTestsCommand, CanExecuteRunFailedTestsCommand); _runPassedTestsCommand = new DelegateCommand(ExecuteRunPassedTestsCommand, CanExecuteRunPassedTestsCommand); _runSelectedTestCommand = new DelegateCommand(ExecuteSelectedTestCommand, CanExecuteSelectedTestCommand); _copyResultsCommand = new DelegateCommand(ExecuteCopyResultsCommand); }
public RunAllTestsCommand(ITestEngine engine, TestExplorerModelBase model) { _engine = engine; _model = model; }
public AddTestMethodExpectedErrorCommand(VBE vbe, TestExplorerModelBase model) { _vbe = vbe; _model = model; }
public TestEngine(TestExplorerModelBase model, VBE vbe) { _model = model; _vbe = vbe; }