public async Task ApiKeyNotFound() { var apiClient = new BitFlyerPrivateApiClient("xxxxxxxxxxx", "xxxxxxxxxxx"); try { await apiClient.GetPermissions(); } catch (BitFlyerApiException ex) { Assert.AreEqual(ex.ErrorResponse.Status, -500); Assert.AreEqual(ex.ErrorResponse.ErrorMessage, "Key not found"); } }
public async Task GetPermissions() { var res1 = await _apiClient.GetPermissions(); Assert.AreNotEqual(res1, null); }