示例#1
0
        public DialectTest(SQLServerFixture sqlServerFixture)
        {
            _sqlServerFixture = sqlServerFixture;
            if (!TestContext.Travis && !TestContext.AppVeyor)
            { // AppVeyor and Windows 2016 does not support linux docker images
                sqlServerFixture.Start(fromScratch: true);
            }

            TestUtil.CreateTestDatabase(DbName, sqlServerFixture.DbUser, sqlServerFixture.DbPwd);
        }
示例#2
0
        public DialectTest(SQLServerFixture dbContainer)
        {
            _dbContainer = dbContainer;

            if (Local)
            {
                dbContainer.Run(fromScratch: true);
            }

            TestUtil.CreateSqlServerDatabase(DbName, _dbContainer.GetCnxStr("master"));
        }
示例#3
0
        public DialectTest(SQLServerFixture sqlServerContainer)
        {
            _sqlServerContainer = sqlServerContainer;

            if (TestContext.Local)
            {
                sqlServerContainer.Run(fromScratch: true);
            }

            TestUtil.CreateSqlServerDatabase(DbName, _sqlServerContainer.GetCnxStr("master"));
        }
示例#4
0
        public MigrationTest(SQLServerFixture dbContainer, ITestOutputHelper output)
        {
            _dbContainer = dbContainer;
            _output      = output;

            if (Local)
            {
                dbContainer.Run(fromScratch: true);
            }

            TestUtil.CreateSqlServerDatabase(DbName, _dbContainer.GetCnxStr("master"));
        }
示例#5
0
        public CoreReflectionBasedDriverTest(MySQLFixture mySqlfixture, PostgreSqlFixture pgFixture, SQLServerFixture sqlServerFixture)
        {
            _mySqlfixture     = mySqlfixture;
            _pgFixture        = pgFixture;
            _sqlServerFixture = sqlServerFixture;

            if (!TestContext.AppVeyor)
            { // AppVeyor and Windows 2016 does not support linux docker images
                _mySqlfixture.Start();
                _pgFixture.Start();
                _sqlServerFixture.Start();
            }
        }
示例#6
0
        public NetDriverTest(MySQLFixture mySqlfixture, PostgreSqlFixture pgFixture, SQLServerFixture sqlServerFixture, CassandraFixture cassandraFixture)
        {
            _mySqlfixture     = mySqlfixture;
            _pgFixture        = pgFixture;
            _sqlServerFixture = sqlServerFixture;
            _cassandraFixture = cassandraFixture;

            if (!TestContext.Travis && !TestContext.AppVeyor)
            { // AppVeyor and Windows 2016 does not support linux docker images
                _mySqlfixture.Start();
                _pgFixture.Start();
                _sqlServerFixture.Start();
                _cassandraFixture.Start();
            }
        }
示例#7
0
        public CliTest(PostgreSqlFixture pgContainer, MySQLFixture mySQLContainer, SQLServerFixture sqlServerContainer, CassandraFixture cassandraContainer, ITestOutputHelper output)
        {
            _pgContainer        = pgContainer;
            _mySQLContainer     = mySQLContainer;
            _sqlServerContainer = sqlServerContainer;
            _cassandraContainer = cassandraContainer;
            _output             = output;

            if (TestContext.Local || TestContext.AzureDevOps)
            {
                pgContainer.Run();
                sqlServerContainer.Run();
                cassandraContainer.Run();
                if (TestContext.Local)
                {
                    mySQLContainer.Run();
                }
            }
        }