public void BeforeAllTests()
        {
            string configFile = SessionFactoryProvider.GetFullPathForContentFile("hibernate.cfg.xml");

            SessionFactoryProvider = new SessionFactoryProvider(configFile);
            SessionFactory         = SessionFactoryProvider.DefaultSessionFactory;
        }
Ejemplo n.º 2
0
        public void SetupOnceForAssembly()
        {
            string configFile             = SessionFactoryProvider.GetFullPathForContentFile("hibernate.cfg.xml");
            var    sessionFactoryProvider = new SessionFactoryProvider(configFile);

            sessionFactoryProvider.BuildSchema();
        }
 public void AfterAllTests()
 {
     SessionFactory.Dispose();
     SessionFactory         = null;
     SessionFactoryProvider = null;
 }