/// <exception cref="System.Exception"></exception> public void SetUp() { IDb4oFixture _fixture = Fixture(); _fixture.Clean(); Db4oSetupBeforeConfigure(); Configure(_fixture.Config()); _fixture.Open(this); Db4oSetupBeforeStore(); Store(); _fixture.Db().Commit(); _fixture.Close(); _fixture.Open(this); Db4oSetupAfterStore(); }
/// <exception cref="System.Exception"></exception> public void TearDown() { try { Db4oTearDownBeforeClean(); } finally { IDb4oFixture fixture = Fixture(); fixture.Close(); IList uncaughtExceptions = fixture.UncaughtExceptions(); fixture.Clean(); HandleUncaughtExceptions(uncaughtExceptions); } Db4oTearDownAfterClean(); }