From 4ab34e20213dfc428a61577684ed62c032a1803e Mon Sep 17 00:00:00 2001 From: sethreno Date: Thu, 1 Jan 2015 13:15:40 -0600 Subject: [PATCH] Replace hard coded conn string with config. --- test/DatabaseTester.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/DatabaseTester.cs b/test/DatabaseTester.cs index 039726a9..d55e2766 100644 --- a/test/DatabaseTester.cs +++ b/test/DatabaseTester.cs @@ -269,8 +269,7 @@ public void TestScriptToDir() { db.FindProp("PARAMETERIZATION").Value = "FORCED"; db.FindProp("DATE_CORRELATION_OPTIMIZATION").Value = "ON"; - db.Connection = "server=localhost\\SQLEXPRESS;" - + "database=" + db.Name + ";Trusted_Connection=yes;"; + db.Connection = ConfigHelper.TestDB.Replace("database=TESTDB", "database=" + db.Name); db.ExecCreate(true); DBHelper.ExecSql(db.Connection, @@ -299,8 +298,7 @@ public void TestScriptToDir() { var copy = new Database("ScriptToDirTestCopy"); copy.Dir = db.Dir; - copy.Connection = "server=localhost\\SQLEXPRESS;" - + "database=" + copy.Name + ";Trusted_Connection=yes;"; + copy.Connection = ConfigHelper.TestDB.Replace("database=TESTDB", "database=" + copy.Name); copy.CreateFromDir(true); copy.Load(); TestCompare(db, copy);