示例#1
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
     {
         db = new NHibernateEstateData();
         db.Initialise(connect);
         database = ((NHibernateEstateData)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 NHibernateEstateData();
         db.Initialise(connect);
         database = ((NHibernateEstateData)db).Manager;
     } 
     catch (Exception e)
     {
         m_log.Error(e.ToString());
         Assert.Ignore();
     }
 }
示例#3
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 NHibernateEstateData();
                db.Initialise(connect);
                database = ((NHibernateEstateData)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 NHibernateEstateData();
                db.Initialise(connect);
                database = ((NHibernateEstateData)db).Manager;
            } 
            catch (Exception e)
            {
                m_log.Error(e.ToString());
                Assert.Ignore();
            }
        }
示例#5
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 = "MsSql2005Dialect;SqlClientDriver;Data Source=127.0.0.1;Network Library=DBMSSOCN;Initial Catalog=opensim-nunit;User ID=opensim-nunit;Password=opensim-nunit";

                db = new NHibernateEstateData();
                db.Initialise(connect);
                database = ((NHibernateEstateData)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 = "MsSql2005Dialect;SqlClientDriver;Data Source=127.0.0.1;Network Library=DBMSSOCN;Initial Catalog=opensim-nunit;User ID=opensim-nunit;Password=opensim-nunit";

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