Пример #1
0
        public void can_get_connections()
        {
            var sqlParserDal = new SqlParserDal();
            List <DatabaseConnection> connections = sqlParserDal.Get();

            Assert.True(connections != null);
        }
Пример #2
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);
     }
 }
Пример #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);
            }
        }
Пример #4
0
 public void can_get_connections()
 {
     var sqlParserDal = new SqlParserDal();
     List<DatabaseConnection> connections = sqlParserDal.Get();
     Assert.True(connections != null);
 }