Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("hello");

            DatabaseConnection conn = new AdoConnection();
            Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(conn);

            //Console.WriteLine("Found database " + database + " of type " + database.GetType());

            LockService lockService = LockService.getInstance(database);
            lockService.waitForLock();

            Console.Read();
        }
Ejemplo n.º 2
0
 public void rollbackTest()
 {
     DatabaseConnection target = new AdoConnection();
     target.rollback();
 }
Ejemplo n.º 3
0
 public void getURLTest()
 {
     DatabaseConnection target = new AdoConnection();
     Assert.AreEqual("Provider=SQLOLEDB;Data Source=localhost\\SQL2005;Initial Catalog=liquibase;User Id=liquibase;", target.getURL());
 }
Ejemplo n.º 4
0
 public void getProductNameTest()
 {
     DatabaseConnection target = new AdoConnection();
     Assert.AreEqual("asdf", target.getDatabaseProductName());
 }
Ejemplo n.º 5
0
        public void CsConnectionConstructorTest()
        {
            AdoConnection target = new AdoConnection();

            Assert.IsNotNull(target.GetUnderlyingConnection());
        }
Ejemplo n.º 6
0
 public void commitTest()
 {
     DatabaseConnection target = new AdoConnection();
     target.commit();
 }
Ejemplo n.º 7
0
 public void closeTest()
 {
     DatabaseConnection target = new AdoConnection();
     target.close();
 }