Пример #1
0
        public override List <string> GetALMDomains()
        {
            AlmResponseWithData <AlmDomainColl> domains = Task.Run(() =>
            {
                return(zephyrEntRepository.GetLoginProjects(ALMCore.DefaultAlmConfig.ALMUserName, ALMCore.DefaultAlmConfig.ALMPassword, ALMCore.DefaultAlmConfig.ALMServerURL));
            }).Result;

            return(domains.DataResult.Select(f => f.DomainName).ToList());
        }
Пример #2
0
        public override Dictionary <string, string> GetALMDomainProjects(string ALMDomainName)
        {
            AlmResponseWithData <AlmDomainColl> domains = Task.Run(() =>
            {
                return(zephyrEntRepository.GetLoginProjects(ALMCore.DefaultAlmConfig.ALMUserName, ALMCore.DefaultAlmConfig.ALMPassword, ALMCore.DefaultAlmConfig.ALMServerURL));
            }).Result;

            return(domains.DataResult.Where(f => f.DomainName.Equals(ALMDomainName)).FirstOrDefault().Projects.ToDictionary(project => project.ProjectId.ToString(), project => project.ProjectName));
        }