Exemple #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();
        }
 public void rollbackTest()
 {
     DatabaseConnection target = new AdoConnection();
     target.rollback();
 }
 public void getURLTest()
 {
     DatabaseConnection target = new AdoConnection();
     Assert.AreEqual("Provider=SQLOLEDB;Data Source=localhost\\SQL2005;Initial Catalog=liquibase;User Id=liquibase;", target.getURL());
 }
 public void getProductNameTest()
 {
     DatabaseConnection target = new AdoConnection();
     Assert.AreEqual("asdf", target.getDatabaseProductName());
 }
        public void CsConnectionConstructorTest()
        {
            AdoConnection target = new AdoConnection();

            Assert.IsNotNull(target.GetUnderlyingConnection());
        }
 public void commitTest()
 {
     DatabaseConnection target = new AdoConnection();
     target.commit();
 }
 public void closeTest()
 {
     DatabaseConnection target = new AdoConnection();
     target.close();
 }