private int __GetHubRandom() { HubAPI hubApiApi = new HubAPI(); List <Hub> listHub = hubApiApi.GetHubList(); return(listHub[0].Id); }
public void Test_GetHubList() { HubAPI hubApiApi = new HubAPI(); List <Hub> listHub = hubApiApi.GetHubList(); if (listHub.Count == 0) { throw new BTException("API Test: No hubs were found"); } Hub hubObj = hubApiApi.GetHub(listHub[0].Id); List <ProjectTemplate> listTmpl = hubApiApi.GetHubProjectTemplates(listHub[0].Id); Console.Out.WriteLine("------------------------------------------"); }