Exemplo n.º 1
0
        public TestNode(ProjectFile projectFile, ITestController testController,
            ITestFileManager testFileManager)
        {
            this.projectFile = projectFile;
            this.testController = testController;
            this.testFileManager = testFileManager;

            DefaultCommand = new DelegateCommand(ExecuteDefaultCommand);
        }
Exemplo n.º 2
0
 public MainShellViewModel(IProjectSuiteController projectSuiteController,
     IRecordingController recordingController, ITestFileManager testFileManager)
 {
     this.projectSuiteController = projectSuiteController;
     this.recordingController = recordingController;
     this.testFileManager = testFileManager;
     NewProjectSuiteCommand = new DelegateCommand(ExecuteNewProjectSuiteCommand);
     OpenProjectSuiteCommand = new DelegateCommand(ExecuteOpenProjectSuiteCommand);
     RecordCommand = new DelegateCommand(ExecuteRecordCommand, CanExecuteRecordCommand);
 }
Exemplo n.º 3
0
 public RecordingController(IRecordWindowFactory recordWindowFactory,
     IRecorderViewModelFactory recorderViewModelFactory,
     IRecorderFactory recorderFactory,
     ITestFileManager testFileManager,
     IProjectFileManager projectFileManager, 
     IAppController appController,
     ITestController testController,
     ITestItemController testItemController)
 {
     this.recordWindowFactory = recordWindowFactory;
     this.recorderViewModelFactory = recorderViewModelFactory;
     this.recorderFactory = recorderFactory;
     this.testFileManager = testFileManager;
     this.projectFileManager = projectFileManager;
     this.appController = appController;
     this.testController = testController;
     this.testItemController = testItemController;
 }
        public TestMainShellViewModel(Test test, ITestScreenshotsViewModelFactory testScreenshotsViewModelFactory,
            ITestShellViewModelFactory testShellViewModelFactory,
            IVariableManagerViewModelFactory variableManagerViewModelFactory,
            ITestFileManager testFileManager)
        {
            this.test = test;
            this.testScreenshotsViewModelFactory = testScreenshotsViewModelFactory;
            this.testShellViewModelFactory = testShellViewModelFactory;
            this.variableManagerViewModelFactory = variableManagerViewModelFactory;
            this.testFileManager = testFileManager;
            testName = test.Name;

            SaveCommand = new DelegateCommand(ExecuteSaveCommand);

            TestScreenshotsViewModel = testScreenshotsViewModelFactory.Create(test);
            TestShellViewModel = testShellViewModelFactory.Create(test);
            VariableManagerViewModel = variableManagerViewModelFactory.Create(test);

            TestScreenshotsViewModel.PropertyChanged += TestScreenshotsViewModelOnPropertyChanged;
            TestShellViewModel.TestDetailsViewModel.PropertyChanged+=TestDetailsViewModelOnPropertyChanged;
            Test.TestChanged += TestOnTestChanged;
            Test.NameChanged += TestOnNameChanged;
        }
Exemplo n.º 5
0
 public RunTestOperation(ITestFileManager testFileManager)
 {
     this.testFileManager = testFileManager;
 }
Exemplo n.º 6
0
 public RunTestOperation()
 {
     this.testFileManager = ServiceLocator.Current.GetInstance<ITestFileManager>();
 }