private void TestQuery <TQuery>() where TQuery : ITestableQuery, new() { var qry = new TQuery(); using (var cn = GetConnection()) { foreach (var testCase in qry.GetTestCases()) { testCase.TestExecute(cn); } } }