public Task<bool> Delete(string apiClientId) { if(apiClientId == null) throw new ArgumentNullException(); return _syncanoClient.GetAsync("apikey.delete", new {api_client_id = apiClientId}); } }
public async Task Delete_WithInvalidApiKey_ThrowsException(ApiKeySyncanoClient client) { try { //when await client.Delete("abcde123"); throw new Exception("Delete should throw an exception"); } catch (Exception e) { //then e.ShouldBeType<SyncanoException>(); } }