Skip to content

Commit

Permalink
Replace hard coded conn string with config.
Browse files Browse the repository at this point in the history
  • Loading branch information
sethreno committed Jan 1, 2015
1 parent 26c2708 commit 4ab34e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/DatabaseTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4ab34e2

Please # to comment.