Exemple #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);
        }
Exemple #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);
        }
Exemple #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))");
        }
        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))");
        }
 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);
 }
 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);
 }
 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);
 }
Exemple #9
0
 public static void Run(MultiTableContext db, string testName)
 {
     new MultiTableTests().RunTest(db, null, true, testName);
 }
Exemple #10
0
 public static void Run(MultiTableContext db)
 {
     new MultiTableTests().RunTests(db, null, null, true);
 }