public async Task ClearAndInitialize() { if (Mode == RecordedTestMode.Record || Mode == RecordedTestMode.Playback) { await InitializeClients(); AsyncPageable <TenantResource> tenantResourcesResponse = ArmClient.GetTenants().GetAllAsync(); List <TenantResource> tenantResources = await tenantResourcesResponse.ToEnumerableAsync(); Tenant = tenantResources.ToArray()[0]; } }