示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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))");
        }
示例#4
0
        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))");
        }
示例#5
0
 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);
 }
示例#6
0
 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);
 }
示例#7
0
 public static void Run(MultiTableContext db, string testName)
 {
     new MultiTableTests().RunTest(db, null, true, testName);
 }
示例#8
0
 public static void Run(MultiTableContext db)
 {
     new MultiTableTests().RunTests(db, null, null, true);
 }
示例#9
0
 public static void Run(MultiTableContext db, string testName)
 {
     new MultiTableTests().RunTest(db, null, true, testName);
 }
示例#10
0
 public static void Run(MultiTableContext db)
 {
     new MultiTableTests().RunTests(db, null, null, true);
 }