protected string GetAccessPointInfoList(int?limit, string offset, out AccessPointInfo[] list, string stepName) { PACSPortClient client = AccessControlClient; string nextReference = null; AccessPointInfo[] infos = null; RunStep(() => { nextReference = client.GetAccessPointInfoList(limit, offset, out infos); }, stepName); DoRequestDelay(); list = infos; return(nextReference); }
protected List <AccessPointInfo> GetAccessPointInfoList() { PACSPortClient client = PACSPortClient; PACS.GetListMethod <AccessPointInfo> getList = new PACS.GetListMethod <AccessPointInfo>( (int?limit, string offset, out AccessPointInfo[] list) => { string newOffset = null; AccessPointInfo[] infos = null; RunStep(() => { newOffset = client.GetAccessPointInfoList(limit, offset, out infos); }, "Get AccessPointInfo list"); list = infos; return(newOffset); }); List <AccessPointInfo> fullList = PACS.Extensions.GetFullList(getList, null, "AccessPointInfo", Assert); Assert(fullList.Count > 0, "No AccessPointInfos returned", "Check that the list of AccessPointInfos is not empty"); return(fullList); }