protected void RunTest(MultiTableContext db, string baselineFile, bool executeQueries, string testName) { this.db = db; var provider = (DbEntityProvider)db.Provider; base.RunTest(provider, baselineFile, executeQueries, testName); }
protected void RunTests(MultiTableContext db, string baselineFile, string newBaselineFile, bool executeQueries) { this.db = db; var provider = (DbEntityProvider)db.Provider; base.RunTests(provider, baselineFile, newBaselineFile, executeQueries); }
public override void Setup(string[] args) { base.Setup(args); db = new MultiTableContext(GetProvider()); ExecSilent("DROP TABLE TestTable3"); ExecSilent("DROP TABLE TestTable2"); ExecSilent("DROP TABLE TestTable1"); ExecSilent("CREATE TABLE TestTable1 (ID int IDENTITY(1,1) PRIMARY KEY, Value1 VARCHAR(10))"); ExecSilent("CREATE TABLE TestTable2 (ID int PRIMARY KEY REFERENCES TestTable1(ID), Value2 VARCHAR(10))"); ExecSilent("CREATE TABLE TestTable3 (ID int PRIMARY KEY REFERENCES TestTable1(ID), Value3 VARCHAR(10))"); }
public override void Setup(string[] args) { base.Setup(args); this.db = new MultiTableContext(this.GetProvider()); ExecSilent("DROP TABLE TestTable3"); ExecSilent("DROP TABLE TestTable2"); ExecSilent("DROP TABLE TestTable1"); ExecSilent("CREATE TABLE TestTable1 (ID int IDENTITY(1,1) PRIMARY KEY, Value1 VARCHAR(10))"); ExecSilent("CREATE TABLE TestTable2 (ID int PRIMARY KEY REFERENCES TestTable1(ID), Value2 VARCHAR(10))"); ExecSilent("CREATE TABLE TestTable3 (ID int PRIMARY KEY REFERENCES TestTable1(ID), Value3 VARCHAR(10))"); }
public static void Run(MultiTableContext db, string testName) { new MultiTableTests().RunTest(db, null, true, testName); }
public static void Run(MultiTableContext db) { new MultiTableTests().RunTests(db, null, null, true); }