/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { ITestInstantiationService, workbenchInstantiationService as vsworkbenchInstantiationService } from 'vs/workbench/test/browser/workbenchTestServices'; import { IQueryModelService } from 'sql/workbench/services/query/common/queryModel'; import { TestQueryModelService } from 'sql/workbench/services/query/test/common/testQueryModelService'; import { IConnectionManagementService } from 'sql/platform/connection/common/connectionManagement'; import { TestConnectionManagementService } from 'sql/platform/connection/test/common/testConnectionManagementService'; import { TestObjectExplorerService } from 'sql/workbench/services/objectExplorer/test/browser/testObjectExplorerService'; import { IObjectExplorerService } from 'sql/workbench/services/objectExplorer/browser/objectExplorerService'; import { IQueryEditorService } from 'sql/workbench/services/queryEditor/common/queryEditorService'; import { TestQueryEditorService } from 'sql/workbench/services/queryEditor/test/browser/testQueryEditorService'; import { IQueryManagementService } from 'sql/workbench/services/query/common/queryManagement'; import { TestQueryManagementService } from 'sql/workbench/services/query/test/common/testQueryManagementService'; export function workbenchInstantiationService(): ITestInstantiationService { const instantiationService = vsworkbenchInstantiationService(); instantiationService.stub(IQueryEditorService, instantiationService.createInstance(TestQueryEditorService)); instantiationService.stub(IConnectionManagementService, new TestConnectionManagementService()); instantiationService.stub(IQueryModelService, new TestQueryModelService()); instantiationService.stub(IObjectExplorerService, new TestObjectExplorerService()); instantiationService.stub(IQueryManagementService, new TestQueryManagementService()); return instantiationService; }