コード例 #1
0
        /// <summary>
        /// Test the service initialization code path and verify nothing throws
        /// </summary>
        // Test is causing failures in build lab..investigating to reenable
        //[Fact]
        public void PrepopulateCommonMetadata()
        {
            InitializeTestServices();

            string     sqlFilePath = GetTestSqlFile();
            ScriptFile scriptFile  = WorkspaceService <SqlToolsSettings> .Instance.Workspace.GetFile(sqlFilePath);

            string ownerUri          = scriptFile.ClientFilePath;
            var    connectionService = TestObjects.GetTestConnectionService();
            var    connectionResult  =
                connectionService
                .Connect(new ConnectParams()
            {
                OwnerUri   = ownerUri,
                Connection = TestObjects.GetTestConnectionDetails()
            });

            ConnectionInfo connInfo = null;

            connectionService.TryFindConnection(ownerUri, out connInfo);

            ScriptParseInfo scriptInfo = new ScriptParseInfo();

            scriptInfo.IsConnected = true;

            AutoCompleteHelper.PrepopulateCommonMetadata(connInfo, scriptInfo, null);
        }
コード例 #2
0
        public void PrepopulateCommonMetadata()
        {
            var result   = TestObjects.InitLiveConnectionInfo();
            var connInfo = result.ConnectionInfo;

            ScriptParseInfo scriptInfo = new ScriptParseInfo {
                IsConnected = true
            };

            AutoCompleteHelper.PrepopulateCommonMetadata(connInfo, scriptInfo, null);
        }
コード例 #3
0
        public void PrepopulateCommonMetadata()
        {
            ScriptFile     scriptFile;
            ConnectionInfo connInfo = TestObjects.InitLiveConnectionInfo(out scriptFile);

            ScriptParseInfo scriptInfo = new ScriptParseInfo {
                IsConnected = true
            };

            AutoCompleteHelper.PrepopulateCommonMetadata(connInfo, scriptInfo, null);
        }