////////////////////////////////////////////////////////////////////////// // // Ping-based tests // ////////////////////////////////////////////////////////////////////////// public async Task PingTest() { // Create request with an invalid API Key Console.WriteLine("\nPing test (expect success)"); GvApiPingResponse resp = await this.apiRequestPing("ping test", new object()); Console.WriteLine(resp); }
public async Task PingTestAuthError() { // Create request with an invalid API Key Console.WriteLine("\nPing test (expect authentication error)"); // mess with the authentication key GvApiPingResponse resp = await this.apiRequestPing("ping test (fail)", new object(), accountKey : GvAccountConsts.accountApiKey + "XYZ" ); Console.WriteLine(resp); }