public void Init()
 {
     SuperInit();
     // If we manage to connect to the database with the user
     // and password above it is our test database, and run
     // these tests.  If anything goes wrong, ignore these
     // tests.
     try
     {
         db = new NHibernateInventoryData();
         db.Initialise(connect);
         database = ((NHibernateInventoryData)db).Manager;
     }
     catch (Exception e)
     {
         m_log.Error(e.ToString());
         Assert.Ignore();
     }
 }
 public void Init()
 {
     SuperInit();
     // If we manage to connect to the database with the user
     // and password above it is our test database, and run
     // these tests.  If anything goes wrong, ignore these
     // tests.
     try 
     {
         db = new NHibernateInventoryData();
         db.Initialise(connect);
         database = ((NHibernateInventoryData)db).Manager;
     } 
     catch (Exception e)
     {
         m_log.Error(e.ToString());
         Assert.Ignore();
     }
 }
        public void Init()
        {
            SuperInit();
            // If we manage to connect to the database with the user
            // and password above it is our test database, and run
            // these tests.  If anything goes wrong, ignore these
            // tests.
            try 
            {
                string connect = "SQLiteDialect;SQLite20Driver;Data Source=" + Path.GetTempFileName() + ".db;Version=3";

                db = new NHibernateInventoryData();
                db.Initialise(connect);
                database = ((NHibernateInventoryData)db).Manager;
            } 
            catch (Exception e)
            {
                m_log.Error(e.ToString());
                Assert.Ignore();
            }
        }
Esempio n. 4
0
        public void Init()
        {
            SuperInit();
            // If we manage to connect to the database with the user
            // and password above it is our test database, and run
            // these tests.  If anything goes wrong, ignore these
            // tests.
            try
            {
                string connect = "SQLiteDialect;SQLite20Driver;Data Source=" + Path.GetTempFileName() + ".db;Version=3";

                db = new NHibernateInventoryData();
                db.Initialise(connect);
                database = ((NHibernateInventoryData)db).Manager;
            }
            catch (Exception e)
            {
                m_log.Error(e.ToString());
                Assert.Ignore();
            }
        }