public async Task GetDefaultClientScopesAsync(string realm, string clientId) { var clients = await ClientsClient.GetClientsAsync(realm); string clientsId = clients.FirstOrDefault(x => x.ClientId == clientId)?.Id; if (clientsId != null) { var result = await ClientsClient.GetDefaultClientScopesAsync(realm, clientsId); Assert.NotNull(result); } }