internal IEnumerable<BatchAccount> ListAllAccounts(IPage<BatchAccount> response)
{
var accountResources = new List<BatchAccount>();
accountResources.AddRange(response);
var nextLink = response.NextPageLink;
while (nextLink != null)
{
response = ListNextAccounts(nextLink);
accountResources.AddRange(response);
nextLink = response.NextPageLink;
}
return accountResources;
}