示例#1
0
 protected FunctionIndexBasedTest(AssemblyMefCatalogFixture catalog)
 {
     _exportProvider = catalog.CreateExportProvider();
     _editorShell    = _exportProvider.GetExportedValue <IEditorShell>();
     _packageIndex   = _exportProvider.GetExportedValue <IPackageIndex>();
     _functionIndex  = _exportProvider.GetExportedValue <IFunctionIndex>();
 }
示例#2
0
 protected FunctionIndexBasedTest(AssemblyMefCatalogFixture catalog)
 {
     ExportProvider = catalog.CreateExportProvider();
     Workflow       = UIThreadHelper.Instance.Invoke(() => ExportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate());
     EditorShell    = ExportProvider.GetExportedValue <IEditorShell>();
     PackageIndex   = ExportProvider.GetExportedValue <IPackageIndex>();
     FunctionIndex  = ExportProvider.GetExportedValue <IFunctionIndex>();
 }