Example #1
0
 public WatermarkTest(ContainerHostMethodFixture containerHost) {
     _containerHost = containerHost;
     _textBox = new TextBox {
         Width = 300,
         VerticalAlignment = VerticalAlignment.Center
     };
 }
Example #2
0
        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));
        }
Example #3
0
        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));
        }