Exemple #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");
            }
        }
Exemple #2
0
 public void TestInitialize()
 {
     _apiClient = new BitFlyerPrivateApiClient("xxxxxxxxxxx", "xxxxxxxxxxx");
 }
 public PrivateApiTest()
 {
     _apiClient = new BitFlyerPrivateApiClient("xxxxxxxxxxx", "xxxxxxxxxxx");
 }