public RPackageManagerViewModelTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); _workflow = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>().GetOrCreate(); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }
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 VariableGridTest(TestFilesFixture files) { _files = files; var workflow = VsAppShell.Current.ExportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate(); _hostScript = new VariableRHostScript(SessionProvider); }
public RPlotIntegrationTest(IExportProvider exportProvider, TestMethodFixture testMethod, TestFilesFixture testFiles) { _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 RPackageManagerViewModelTest(IExportProvider exportProvider, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = exportProvider; var workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>(); _workflow = UIThreadHelper.Instance.Invoke(() => workflowProvider.GetOrCreate()); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }
public RPackageManagerViewModelTest(IServiceContainer services, TestMethodFixture testMethod, TestFilesFixture testFiles) { _services = services; var workflowProvider = _services.GetService <IRInteractiveWorkflowProvider>(); _workflow = UIThreadHelper.Instance.Invoke(() => workflowProvider.GetOrCreate()); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }
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 RPlotIntegrationTest(IServiceContainer services, IRemoteBroker remoteBroker, TestMethodFixture testMethod, TestFilesFixture testFiles) { _workflow = services.GetService <IRInteractiveWorkflowVisualProvider>().GetOrCreate(); _plotDeviceVisualComponentContainerFactory = services.GetService <TestRPlotDeviceVisualComponentContainerFactory>(); _plotHistoryVisualComponentContainerFactory = services.GetService <IRPlotHistoryVisualComponentContainerFactory>(); _testMethod = testMethod.MethodInfo; _remoteBroker = remoteBroker; _testFiles = testFiles; _ui = _workflow.Services.UI() as TestUIServices; }
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 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 VariableGridTest(TestFilesFixture files) { _files = files; _hostScript = new VariableRHostScript(SessionProvider); }
public VariableExplorerTest(TestFilesFixture files) { _files = files; }
public static Task SetLocalRepoAsync(IRExpressionEvaluator eval, TestFilesFixture testFiles) => SetLocalRepoAsync(eval, GetRepoPath(testFiles));
public VariableGridTest(IServiceContainer services, TestFilesFixture files) : base(services) { _files = files; _hostScript = new VariableRHostScript(Services); }
public VariableGridTest(TestFilesFixture files, BrokerFixture broker) { _files = files; _broker = broker; _hostScript = new VariableRHostScript(SessionProvider, _broker.BrokerConnector); }
public PackageManagerIntegrationTest(IServiceContainer services, TestMethodFixture testMethod, TestFilesFixture testFiles) { _services = services; _workflowProvider = _services.GetService <TestRInteractiveWorkflowProvider>(); _repoPath = TestRepositories.GetRepoPath(testFiles); _libPath = Path.Combine(testFiles.LibraryDestinationPath, testMethod.MethodInfo.Name); _lib2Path = Path.Combine(testFiles.Library2DestinationPath, testMethod.MethodInfo.Name); Directory.CreateDirectory(_libPath); Directory.CreateDirectory(_lib2Path); }
public VariableGridTest(TestFilesFixture files) { _files = files; }
public VariableExplorerTest(TestFilesFixture files, BrokerFixture brokerFixture) : base(brokerFixture.BrokerConnector) { _files = files; }
public static string GetRepoPath(TestFilesFixture testFiles) => Path.Combine(testFiles.ReposDestinationPath, Repo);
public static Task SetLocalLibraryAsync(IRExpressionEvaluator eval, MethodInfo testMethod, TestFilesFixture testFiles) { return(SetLocalLibsAsync(eval, Path.Combine(testFiles.LibraryDestinationPath, testMethod.Name))); }
public static Task SetLocalLibraryAsync(IRExpressionEvaluator eval, MethodInfo testMethod, TestFilesFixture testFiles) { return SetLocalLibsAsync(eval, Path.Combine(testFiles.LibraryDestinationPath, testMethod.Name)); }
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 VariableExplorerTest(IServiceContainer services, TestFilesFixture files) : base(services) { _files = files; }
public RPackageWebParserTest(TestMethodFixture testMethod, TestFilesFixture testFiles) { _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }