public void TestFixtureSetUp() { try { Configure(); if (!AppliesTo(Dialect)) { Assert.Ignore(GetType() + " does not apply to " + Dialect); } CreateSchema(); try { _sessionFactory = BuildSessionFactory(); if (!AppliesTo(_sessionFactory)) { Assert.Ignore(GetType() + " does not apply with the current session-factory configuration"); } } catch { DropSchema(); throw; } } catch (Exception e) { Cleanup(); log.Error("Error while setting up the test fixture", e); throw; } }
private void Cleanup() { Sfi?.Close(); _sessionFactory = null; cfg = null; _schemaExport = null; }
protected void RebuildSessionFactory() { _sessionFactory = BuildSessionFactory(); }
public StatelessSessionBuilder(IStatelessSessionBuilder actualBuilder, DebugSessionFactory debugFactory) { _actualBuilder = actualBuilder; _debugFactory = debugFactory; }
protected void RebuildSessionFactory() { Sfi?.Close(); _sessionFactory = BuildSessionFactory(); }