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()); }
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)); }