コード例 #1
0
        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 ) );
        }
コード例 #2
0
 public void TestInit()
 {
     ApiResponseUtil.ThrottleTests();
     _api = new IntegrationApiRequest( _settings );
 }