public VisualStudioWorkItemHelper(string query)
        {
            var project = string.Empty;
            Uri uri     = null;

            this.wiqlInstance = VisualStudioUtils.CreateWiql(query, out uri, out project);

            this.TeamUri     = uri ?? DefaultTeamUri;
            this.ProjectName = project;

            this.VssWorkItemTrackingHttpClient = VisualStudioHttpClientPool.GetVssHttpClient <WorkItemTrackingHttpClient>(this.TeamUri);
        }
        public VisualStudioWorkItemHelper(FileInfo wiqfile)
        {
            string currnetExecutableDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            this.wiqFile = wiqfile;

            if (!this.wiqFile.Exists)
            {
                throw new FileNotFoundException("Failed to load Query file.", this.wiqFile.FullName);
            }

            var project = string.Empty;
            Uri uri     = null;

            this.wiqlInstance = VisualStudioUtils.CreateWiql(this.wiqFile, out uri, out project);

            this.TeamUri     = uri ?? DefaultTeamUri;
            this.ProjectName = project;

            this.VssWorkItemTrackingHttpClient = VisualStudioHttpClientPool.GetVssHttpClient <WorkItemTrackingHttpClient>(this.TeamUri);
        }
 public VisualStudioCodeSearchHelper()
 {
     this.CodeSearchHttpClient    = VisualStudioHttpClientPool.GetBasicHttpClient(DefaultTeamUri);
     OneProjectGitReposHttpClient = VisualStudioHttpClientPool.GetBasicHttpClient(new Uri("https://msazure.visualstudio.com/one/_apis/git/repositories/"));
 }