Beispiel #1
0
        public void can_get_connections()
        {
            var sqlParserDal = new SqlParserDal();
            List <DatabaseConnection> connections = sqlParserDal.Get();

            Assert.True(connections != null);
        }
 public void parse_all_sql_2012_databses()
 {
     var sqlParserDal = new SqlParserDal();
     var connections = sqlParserDal.Get();
     foreach (TestResult result in from databaseConnection in connections let sqlParser = new SqlParser() select sqlParser.Parse(databaseConnection) into results from result in results.Where(result => result.Errors == null || result.Errors.Errors.Count > 0) select result)
     {
         Logger.Log(result);
     }
 }
Beispiel #3
0
        public void parse_all_sql_2012_databses()
        {
            var sqlParserDal = new SqlParserDal();
            var connections  = sqlParserDal.Get();

            foreach (TestResult result in from databaseConnection in connections let sqlParser = new SqlParser() select sqlParser.Parse(databaseConnection) into results from result in results.Where(result => result.Errors == null || result.Errors.Errors.Count > 0) select result)
            {
                Logger.Log(result);
            }
        }
 public void can_get_connections()
 {
     var sqlParserDal = new SqlParserDal();
     List<DatabaseConnection> connections = sqlParserDal.Get();
     Assert.True(connections != null);
 }