private static void ValidateApiKey() { ApiQueryResponse<object> response = Task.Run( () => { var request = new IntegrationApiRequest( Settings ); var result = request.QueryAsync<object>( string.Empty ); return result; } ).GetAwaiter().GetResult(); Assert.IsNull( response.Error, string.Format( "{0} Query: {1}", response.Error, response.CommandText ) ); }
public void TestInit() { ApiResponseUtil.ThrottleTests(); _api = new IntegrationApiRequest( _settings ); }