Example #1
0
        /// <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();
        }
Example #2
0
 /// <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();
 }