示例#1
0
 public DatabaseFixture()
 {
     Pg = new PostgreSqlDockerContainer();
     if (!TestContext.Travis && !TestContext.AppVeyor) // AppVeyor and Windows 2016 does not support linux docker images
     {
         Pg.Start();
         Thread.Sleep(5000);
     }
 }
示例#2
0
        public DatabaseFixture()
        {
            MySql = new MySqlDockerContainer();
            MsSql = new MsSqlDockerContainer();
            Pg    = new PostgreSqlDockerContainer();

            if (!TestContext.Travis && !TestContext.AppVeyor) // AppVeyor does not support Docker Linux images, and Travis CI runs on Linux
            {
                MySql.Start();
                MsSql.Start();
                Pg.Start();

                Thread.Sleep(10000);
            }
        }