示例#1
0
 /// <summary>
 /// Setup NHibernate session
 /// </summary>
 protected virtual void SetupNHibernateSession()
 {
     TestConnectionProvider.CloseDatabase();
     NHibernateSessionProvider.Init();
     setupContextualSession();
     BuildSchema();
 }
示例#2
0
 /// <summary>
 /// Tear down NHibernate session
 /// </summary>
 protected virtual void TearDownNHibernateSession()
 {
     tearDownContextualSession();
     TestConnectionProvider.CloseDatabase();
 }