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(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 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 RPlotIntegrationTest(RComponentsMefCatalogFixture catalog, TestMethodFixture testMethod, TestFilesFixture testFiles) { _exportProvider = catalog.CreateExportProvider(); _workflowProvider = _exportProvider.GetExportedValue <TestRInteractiveWorkflowProvider>(); _workflowProvider.BrokerName = nameof(RPlotIntegrationTest); _plotDeviceVisualComponentContainerFactory = _exportProvider.GetExportedValue <TestRPlotDeviceVisualComponentContainerFactory>(); _plotHistoryVisualComponentContainerFactory = _exportProvider.GetExportedValue <IRPlotHistoryVisualComponentContainerFactory>(); _workflow = _exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate(); _componentContainerFactory = _exportProvider.GetExportedValue <IInteractiveWindowComponentContainerFactory>(); _testMethod = testMethod.MethodInfo; _testFiles = testFiles; }
public RPlotIntegrationUITest(IServiceContainer services, ContainerHostMethodFixture containerHost) { _containerHost = containerHost; _plotDeviceVisualComponentContainerFactory = services.GetService <TestRPlotDeviceVisualComponentContainerFactory>(); // Don't override the standard behavior of using the control size _plotDeviceVisualComponentContainerFactory.DeviceProperties = null; _plotHistoryVisualComponentContainerFactory = services.GetService <IRPlotHistoryVisualComponentContainerFactory>(); _workflow = services.GetService <IRInteractiveWorkflowVisualProvider>().GetOrCreate(); _plotVisual = (IRPlotManagerVisual)_workflow.Plots; _plotVisualComponent = UIThreadHelper.Instance.Invoke(() => _workflow.Plots.GetOrCreateVisualComponent(_plotDeviceVisualComponentContainerFactory, PlotWindowInstanceId)); UIThreadHelper.Instance.Invoke(() => ((IRPlotManagerVisual)_workflow.Plots).RegisterVisualComponent(_plotVisualComponent)); }
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 RPlotIntegrationUITest(IExportProvider exportProvider, ContainerHostMethodFixture containerHost) { _containerHost = containerHost; _exportProvider = exportProvider; _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 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)); }