public WebAutomationViewModel(IManifestService manifestService, ITestCollectionService testCollectionService, IConfigurationService configurationService) { _manifestService = manifestService; _testCollectionService = testCollectionService; _configurationService = configurationService; Header = "Web Automation"; ResultsViewModel = App.ServiceLocator.GetInstance <ResultsViewModel>(); Manifests = new ObservableCollection <ManifestViewModel>(); TransitionArea = ResultsViewModel; LoadInformation(); EditCategoriesCommand = new RelayCommand(EditTestCollections, t => EditTestCollectionViewModel == null); LoadManifestCommand = new RelayCommand(parameter => { var dialog = new OpenFileDialog { Filter = "Manifest File|.manifests.json", }; var result = dialog.ShowDialog(); if (result == true) { _configurationService.TestScriptsPath = Path.GetDirectoryName(dialog.FileName); _manifestService.ReloadManifest(); LoadInformation(); } }); }
public WebAutomationViewModel(IManifestService manifestService, ITestCollectionService testCollectionService, IConfigurationService configurationService) { _manifestService = manifestService; _testCollectionService = testCollectionService; _configurationService = configurationService; Header = "Web Automation"; ResultsViewModel = App.ServiceLocator.GetInstance<ResultsViewModel>(); Manifests = new ObservableCollection<ManifestViewModel>(); TransitionArea = ResultsViewModel; LoadInformation(); EditCategoriesCommand = new RelayCommand(EditTestCollections, t => EditTestCollectionViewModel == null); LoadManifestCommand = new RelayCommand(parameter => { var dialog = new OpenFileDialog { Filter = "Manifest File|.manifests.json", }; var result = dialog.ShowDialog(); if (result == true) { _configurationService.TestScriptsPath = Path.GetDirectoryName(dialog.FileName); _manifestService.ReloadManifest(); LoadInformation(); } }); }
public TestCollectionsController(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, ITestCollectionService testCollectionService, ICommandService commandService) { _container = container; _regionManager = regionManager; _eventAggregator = eventAggregator; _testCollectionService = testCollectionService; _commandService = commandService; }
public ManifestsController( IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, IConfigurationService configurationService, IManifestService manifestService, ITestCollectionService testCollectionService) { _container = container; _regionManager = regionManager; _eventAggregator = eventAggregator; _configurationService = configurationService; _manifestService = manifestService; _testCollectionService = testCollectionService; }
public EditTestCollectionViewModel(ICommandService commandService, ITestCollectionService testCollectionServiceService) { _commandService = commandService; _testCollectionServiceService = testCollectionServiceService; TestCollections = new ObservableCollection<TestCollectionViewModel>(); LoadTestCollections(); SaveCommand = new RelayCommand(t => { SaveTestCollection(); if (CancelCommand != null) CancelCommand.Execute(null); }); SelectedItem = TestCollections.FirstOrDefault(); }
public EditTestCollectionViewModel(ICommandService commandService, ITestCollectionService testCollectionServiceService) { _commandService = commandService; _testCollectionServiceService = testCollectionServiceService; TestCollections = new ObservableCollection <TestCollectionViewModel>(); LoadTestCollections(); SaveCommand = new RelayCommand(t => { SaveTestCollection(); if (CancelCommand != null) { CancelCommand.Execute(null); } }); SelectedItem = TestCollections.FirstOrDefault(); }
public TestCollectionAppService(ITestCollectionService testCollectionService, IMapper mapper) { _testCollectionService = testCollectionService; _mapper = mapper; }