Esempio n. 1
0
        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");
            }
        }
Esempio n. 2
0
        public async Task GetPermissions()
        {
            var res1 = await _apiClient.GetPermissions();

            Assert.AreNotEqual(res1, null);
        }