Ejemplo n.º 1
0
 public void ConnectionTest()
 {
     OracleDatabase oracleDatabase = new OracleDatabase();
     oracleDatabase.ConfigurationName = "OracleTest";
     oracleDatabase.Initialize(new DatabaseConfigurationView(context));
     IDbConnection connection = oracleDatabase.GetConnection();
     Assert.IsNotNull(connection);
     Assert.IsTrue(connection is OracleConnection);
     connection.Open();
     DBCommandWrapper cmd = oracleDatabase.GetSqlStringCommandWrapper("Select * from Region");
     cmd.CommandTimeout = 0;
     Assert.AreEqual(cmd.CommandTimeout, -1);
 }
Ejemplo n.º 2
0
        public void ConnectionTest()
        {
            OracleDatabase oracleDatabase = new OracleDatabase();

            oracleDatabase.ConfigurationName = "OracleTest";
            oracleDatabase.Initialize(new DatabaseConfigurationView(context));
            IDbConnection connection = oracleDatabase.GetConnection();

            Assert.IsNotNull(connection);
            Assert.IsTrue(connection is OracleConnection);
            connection.Open();
            DBCommandWrapper cmd = oracleDatabase.GetSqlStringCommandWrapper("Select * from Region");

            cmd.CommandTimeout = 0;
            Assert.AreEqual(cmd.CommandTimeout, -1);
        }