public RPackageManagerViewModelTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); var workflowProvider = _exportProvider.GetExportedValue<TestRInteractiveWorkflowProvider>(); _workflow = UIThreadHelper.Instance.Invoke(() => workflowProvider.GetOrCreate()); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }
public RPackageManagerViewModelTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); _workflow = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>().GetOrCreate(); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }
public RInteractiveWorkflowCommandTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod) { _testMethod = testMethod.MethodInfo; _exportProvider = catalog.CreateExportProvider(); _workflow = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate(); _componentContainerFactory = _exportProvider.GetExportedValue <IInteractiveWindowComponentContainerFactory>(); }
public RHistoryIntegrationTest(RComponentsMefCatalogFixture catalog) { _exportProvider = catalog.CreateExportProvider(); _textBufferFactory = _exportProvider.GetExportedValue<ITextBufferFactoryService>(); _textEditorFactory = _exportProvider.GetExportedValue<ITextEditorFactoryService>(); _workflowProvider = _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>(); _contentTypeRegistryService = _exportProvider.GetExportedValue<IContentTypeRegistryService>(); _historyVisualComponentContainerFactory = _exportProvider.GetExportedValue<IRHistoryVisualComponentContainerFactory>(); }
public RHistoryViewModelTest(RComponentsMefCatalogFixture catalog, ContainerHostMethodFixture containerHost) { _containerHost = containerHost; _exportProvider = catalog.CreateExportProvider(); _history = _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>().GetOrCreate().History; var containerFactory = _exportProvider.GetExportedValue<IRHistoryVisualComponentContainerFactory>(); _historyVisualComponent = UIThreadHelper.Instance.Invoke(() => _history.GetOrCreateVisualComponent(containerFactory)); }
public RPlotIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); _workflowProvider = _exportProvider.GetExportedValue<TestRInteractiveWorkflowProvider>(); _workflow = _workflowProvider.GetOrCreate(); _plotDeviceVisualComponentContainerFactory = _exportProvider.GetExportedValue<TestRPlotDeviceVisualComponentContainerFactory>(); _plotHistoryVisualComponentContainerFactory = _exportProvider.GetExportedValue<IRPlotHistoryVisualComponentContainerFactory>(); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }
public PlotIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); _workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>(); _workflow = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate(); _componentContainerFactory = _exportProvider.GetExportedValue <IInteractiveWindowComponentContainerFactory>(); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }
public RInteractiveEvaluatorTest(RComponentsMefCatalogFixture catalog) { _exportProvider = catalog.CreateExportProvider(); var settings = _exportProvider.GetExportedValue<IRSettings>(); settings.RCodePage = 1252; _workflowProvider = _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>(); _workflow = UIThreadHelper.Instance.Invoke(() => _workflowProvider.GetOrCreate()); }
public RHistoryViewModelTest(RComponentsMefCatalogFixture catalog, ContainerHostMethodFixture containerHost) { _containerHost = containerHost; _exportProvider = catalog.CreateExportProvider(); _history = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate().History; var containerFactory = _exportProvider.GetExportedValue <IRHistoryVisualComponentContainerFactory>(); _historyVisualComponent = UIThreadHelper.Instance.Invoke(() => _history.GetOrCreateVisualComponent(containerFactory)); }
public RHistoryIntegrationTest(RComponentsMefCatalogFixture catalog) { _exportProvider = catalog.CreateExportProvider(); _textBufferFactory = _exportProvider.GetExportedValue <ITextBufferFactoryService>(); _textEditorFactory = _exportProvider.GetExportedValue <ITextEditorFactoryService>(); _workflowProvider = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>(); _contentTypeRegistryService = _exportProvider.GetExportedValue <IContentTypeRegistryService>(); _interactiveWindowComponentContainerFactory = _exportProvider.GetExportedValue <IInteractiveWindowComponentContainerFactory>(); _historyVisualComponentContainerFactory = _exportProvider.GetExportedValue <IRHistoryVisualComponentContainerFactory>(); }
public PackageManagerIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); _workflowProvider = _exportProvider.GetExportedValue<TestRInteractiveWorkflowProvider>(); _testMethod = testMethod.MethodInfo; _repoPath = TestRepositories.GetRepoPath(testFiles); _libPath = Path.Combine(testFiles.LibraryDestinationPath, _testMethod.Name); _lib2Path = Path.Combine(testFiles.Library2DestinationPath, _testMethod.Name); Directory.CreateDirectory(_libPath); Directory.CreateDirectory(_lib2Path); }
public RPackageManagerViewModelTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); var workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>(); workflowProvider.BrokerName = nameof(RPackageManagerViewModelTest); _workflow = UIThreadHelper.Instance.Invoke(() => workflowProvider.GetOrCreate()); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }
public PackageManagerIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); _workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>(); _testMethod = testMethod.MethodInfo; _repoPath = TestRepositories.GetRepoPath(testFiles); _libPath = Path.Combine(testFiles.LibraryDestinationPath, _testMethod.Name); _lib2Path = Path.Combine(testFiles.Library2DestinationPath, _testMethod.Name); Directory.CreateDirectory(_libPath); Directory.CreateDirectory(_lib2Path); }
public RInteractiveEvaluatorTest(RComponentsMefCatalogFixture catalog) { _exportProvider = catalog.CreateExportProvider(); var settings = _exportProvider.GetExportedValue <IRSettings>(); settings.RCodePage = 1252; _workflowProvider = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>(); _interactiveWindowComponentContainerFactory = _exportProvider.GetExportedValue <IInteractiveWindowComponentContainerFactory>(); }
public RPlotIntegrationUITest(RComponentsMefCatalogFixture catalog, ContainerHostMethodFixture containerHost) { _containerHost = containerHost; _exportProvider = catalog.CreateExportProvider(); _exportProvider.GetExportedValue<TestRInteractiveWorkflowProvider>(); _plotDeviceVisualComponentContainerFactory = _exportProvider.GetExportedValue<TestRPlotDeviceVisualComponentContainerFactory>(); // Don't override the standard behavior of using the control size _plotDeviceVisualComponentContainerFactory.DeviceProperties = null; _plotHistoryVisualComponentContainerFactory = _exportProvider.GetExportedValue<IRPlotHistoryVisualComponentContainerFactory>(); _workflow = _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>().GetOrCreate(); _plotVisualComponent = UIThreadHelper.Instance.Invoke(() => _workflow.Plots.GetOrCreateVisualComponent(_plotDeviceVisualComponentContainerFactory, PlotWindowInstanceId)); UIThreadHelper.Instance.Invoke(() => _workflow.Plots.RegisterVisualComponent(_plotVisualComponent)); }
public PackageManagerIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); _workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>(); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; _workflowProvider.HostClientApp = new RHostClientTestApp(); _repo1Path = _testFiles.GetDestinationPath(Path.Combine("Repos", TestRepositories.Repo1)); _libPath = Path.Combine(_testFiles.GetDestinationPath("library"), _testMethod.Name); _lib2Path = Path.Combine(_testFiles.GetDestinationPath("library2"), _testMethod.Name); Directory.CreateDirectory(_libPath); Directory.CreateDirectory(_lib2Path); }
public RPlotIntegrationUITest(RComponentsMefCatalogFixture catalog, ContainerHostMethodFixture containerHost, TestMethodFixture testMethod, TestFilesFixture testFiles) { _containerHost = containerHost; _exportProvider = catalog.CreateExportProvider(); _workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>(); _workflowProvider.BrokerName = nameof(RPlotIntegrationTest); _plotDeviceVisualComponentContainerFactory = _exportProvider.GetExportedValue <TestRPlotDeviceVisualComponentContainerFactory>(); // Don't override the standard behavior of using the control size _plotDeviceVisualComponentContainerFactory.DeviceProperties = null; _plotHistoryVisualComponentContainerFactory = _exportProvider.GetExportedValue <IRPlotHistoryVisualComponentContainerFactory>(); _workflow = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate(); _componentContainerFactory = _exportProvider.GetExportedValue <IInteractiveWindowComponentContainerFactory>(); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; _plotVisualComponent = UIThreadHelper.Instance.Invoke(() => _workflow.Plots.GetOrCreateVisualComponent(_plotDeviceVisualComponentContainerFactory, PlotWindowInstanceId)); UIThreadHelper.Instance.Invoke(() => _workflow.Plots.RegisterVisualComponent(_plotVisualComponent)); }
public RHistoryTests(RComponentsMefCatalogFixture mefCatalog) { _exportProvider = mefCatalog.CreateExportProvider(); _interactiveWorkflow = InteractiveWorkflowStubFactory.CreateDefault(); _textBuffer = _exportProvider.GetExportedValue <ITextBufferFactoryService>().CreateTextBuffer(); }
public RInteractiveWorkflowCommandTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod) { _testMethod = testMethod.MethodInfo; _exportProvider = catalog.CreateExportProvider(); _workflow = _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>().GetOrCreate(); _settings = _exportProvider.GetExportedValue<IRSettings>(); }
public ConnectionManagerViewModelTest(RComponentsMefCatalogFixture mefCatalogFixture) { _exportProvider = mefCatalogFixture.CreateExportProvider(); _workflow = _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>().GetOrCreate(); _cmvc = UIThreadHelper.Instance.Invoke(() => _workflow.Connections.GetOrCreateVisualComponent()); _cmvm = UIThreadHelper.Instance.Invoke(() => (ConnectionManagerViewModel)_cmvc.Control.DataContext); }
public RInteractiveWorkflowOperationsTest(RComponentsMefCatalogFixture catalog) { _exportProvider = catalog.CreateExportProvider(); _workflow = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate(); }
public RHistoryTests(RComponentsMefCatalogFixture mefCatalog) { _exportProvider = mefCatalog.CreateExportProvider(); _interactiveWorkflow = InteractiveWorkflowStubFactory.CreateDefault(); _textBuffer = _exportProvider.GetExportedValue<ITextBufferFactoryService>().CreateTextBuffer(); }
public RInteractiveWorkflowOperationsTest(RComponentsMefCatalogFixture catalog) { _exportProvider = catalog.CreateExportProvider(); _workflow = _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>().GetOrCreate(); }