public TestResult SQLData()
        {
            var t      = test.TestSQLServer(this.sqlTestData);
            var result = new TestResult {
                Passed = t.Passed, Status = t.Status
            };

            return(result);
        }
Example #2
0
        public ActionResult Database(SQLTestData data)
        {
            var            test   = new TestProcessor();
            DataTestResult result = new DataTestResult();

            if (TestType.TestSQLServer && TestType.TestMySQL)
            {
                var sqlResult   = test.TestSQLServer(data);
                var mySqlResult = test.TestMySQL(data);
                result = new DataTestResult(sqlResult, mySqlResult);
            }
            else if (TestType.TestSQLServer)
            {
                result = test.TestSQLServer(data);
            }
            else
            {
                result = test.TestMySQL(data);
            }
            result.Ignore  = false;
            ViewBag.Result = result;
            return(View(data));
        }