public TestExplorerViewModel(VBE vbe, RubberduckParserState state, ITestEngine testEngine, TestExplorerModel model, IClipboardWriter clipboard, NewUnitTestModuleCommand newTestModuleCommand, NewTestMethodCommand newTestMethodCommand, IGeneralConfigService configService, IOperatingSystem operatingSystem) { _state = state; _testEngine = testEngine; _testEngine.TestCompleted += TestEngineTestCompleted; _model = model; _clipboard = clipboard; _configService = configService; _operatingSystem = operatingSystem; _navigateCommand = new NavigateCommand(); _runAllTestsCommand = new RunAllTestsCommand(state, testEngine, model); _runAllTestsCommand.RunCompleted += RunCompleted; _addTestModuleCommand = new AddTestModuleCommand(vbe, state, newTestModuleCommand); _addTestMethodCommand = new AddTestMethodCommand(vbe, state, newTestMethodCommand); _addErrorTestMethodCommand = new AddTestMethodExpectedErrorCommand(vbe, state, newTestMethodCommand); _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); _openTestSettingsCommand = new DelegateCommand(OpenSettings); _setOutcomeGroupingCommand = new DelegateCommand(param => { GroupByOutcome = (bool)param; GroupByLocation = !(bool)param; }); _setLocationGroupingCommand = new DelegateCommand(param => { GroupByLocation = (bool)param; GroupByOutcome = !(bool)param; }); }
public CodeExplorer_AddTestModuleCommand(NewUnitTestModuleCommand newUnitTestModuleCommand) { _newUnitTestModuleCommand = newUnitTestModuleCommand; }
private void AddTestModule(object sender, EventArgs e) { NewUnitTestModuleCommand.NewUnitTestModule(VBE); RefreshExplorerTreeView(); }
private void OnExplorerAddTestModuleButtonClick(object sender, EventArgs e) { NewUnitTestModuleCommand.NewUnitTestModule(this.VBE); Synchronize(); }
public override void Execute(object parameter) { // legacy static class... NewUnitTestModuleCommand.NewUnitTestModule(_vbe); }
public AddTestModuleCommand(VBE vbe, RubberduckParserState state, NewUnitTestModuleCommand command) { _vbe = vbe; _state = state; _command = command; }