Example #1
0
        public void MySqlDriver_NET_Core_2_0_works()
        {
            var driver = new CoreMySqlDataDriver(TestContext.NetCore20DepsFile, TestContext.NugetPackageFolder);
            var cnn    = driver.CreateConnection($"Server=127.0.0.1;Port={_mySqlfixture.HostPort};Database={_mySqlfixture.DbName};Uid={_mySqlfixture.DbUser};Pwd={_mySqlfixture.DbPwd};SslMode=none;");

            cnn.Open();

            Assert.True(cnn.State == ConnectionState.Open);
        }
Example #2
0
        public void MySqlDriver_works()
        {
            var driver = new CoreMySqlDataDriver(TestContext.DriverResourcesDepsFile, TestContext.NugetPackageFolder);
            var cnn    = driver.CreateConnection($"Server=127.0.0.1;Port={_fixture.MySql.HostPort};Database={_fixture.MySql.DbName};Uid={_fixture.MySql.DbUser};Pwd={_fixture.MySql.DbPwd};");

            cnn.Open();

            Assert.True(cnn.State == ConnectionState.Open);
        }
        public void MySqlDriver_works()
        {
            var driver = new CoreMySqlDataDriver(TestContext.DriverResourcesDepsFile, TestContext.NugetPackageFolder);
            var cnn    = driver.CreateConnection($"Server=127.0.0.1;Port=3306;Database=my_database;Uid=root;Pwd={TestContext.MySqlPassword};");

            cnn.Open();

            Assert.True(cnn.State == ConnectionState.Open);
        }