public void GetAndSetWorkItemCategories()
        {
            string api = String.Format(Constants.API_GET_WI_CATEGORIES, lc.VSTSAccountUrl, Project);

            string responseBody = VSTSService.GetResponseFromGetRESTUri(api);

            if (responseBody != null)
            {
                try
                {
                    dynamic json = JsonConvert.DeserializeObject(responseBody);


                    foreach (var v in json.value)
                    {
                        string s = v.referenceName;
                        if (s != null && !s.Equals(String.Empty))
                        {
                            switch (s)
                            {
                            case WI_FEATURE_CATEGORY:
                                FeatureTypeName = v.defaultWorkItemType.name;
                                break;

                            case WI_REQUIREMENT_CATEGORY:
                                RequirementTypeName = v.defaultWorkItemType.name;
                                break;

                            case WI_TASK_CATEGORY:
                                TaskTypeName = v.defaultWorkItemType.name;
                                break;

                            case WI_BUG_CATEGORY:
                                BugTypeName = v.defaultWorkItemType.name;
                                break;
                            }
                        }
                    }
                }
                catch
                {
                    //
                }
            }
        }
        public void GetAndSetProjectDetails()
        {
            LoginContext lc     = LoginContext.GetLoginContext();
            string       apiUrl = String.Format(Constants.GET_API_TEAM_PROJECT_WITH_CAPABILITIES, lc.VSTSAccountUrl, Project);

            string responseBody = VSTSService.GetResponseFromGetRESTUri(apiUrl);

            if (responseBody != null)
            {
                try
                {
                    dynamic json = JsonConvert.DeserializeObject(responseBody);
                    RepositoryType  = json.capabilities.versioncontrol.sourceControlType;
                    ProjectTemplate = json.capabilities.processTemplate.templateName;

                    localSettings.Values[str_project]         = _project;
                    localSettings.Values[str_repositoryType]  = _repositoryType;
                    localSettings.Values[str_projectTemplate] = _projectTemplate;
                }
                catch { }
            }
        }