Authorize() public method

Adds permission to specified User API client. Requires Backend API key with Admin permission role.
public Authorize ( string apiClientId, ApiKeyPermission permission ) : Task
apiClientId string User API client id.
permission ApiKeyPermission User API client's permission to add.
return Task
 public async Task Authorize_WithNullApiKeyId_ThrowsException(ApiKeySyncanoClient client)
 {
     try
     {
         //when
         await client.Authorize(null, ApiKeyPermission.AccessSync);
         throw new Exception("Authorize should throw an exception");
     }
     catch (Exception e)
     {
         //then
         e.ShouldBeType<ArgumentNullException>();
     }
 }
        public async Task Deauthorize_WithSubscribePermission(ApiKeySyncanoClient client)
        {
            //given
            var description = "apiKey description";
            var apiKey = await client.New(description, ApiKeyType.User);
            await client.Authorize(apiKey.Id, ApiKeyPermission.SendNotification);

            //when
            var result = await client.Deauthorize(apiKey.Id, ApiKeyPermission.SendNotification);

            //then
            result.ShouldBeTrue();

            //cleanup
            await client.Delete(apiKey.Id);
        }
        public async Task Authorize_WithAccessSyncPermission(ApiKeySyncanoClient client)
        {
            //given
            var description = "apiKey description";
            var apiKey = await client.New(description, ApiKeyType.User);

            //when
            var result = await client.Authorize(apiKey.Id, ApiKeyPermission.AccessSync);

            //then
            result.ShouldBeTrue();

            //cleanup
            await client.Delete(apiKey.Id);
        }