Exemplo n.º 1
0
        private void WithDatabase(IEmbeddedConfiguration config, AccessFieldTestCaseBase.IDatabaseAction
                                  action)
        {
            IObjectContainer db = Db4oEmbedded.OpenFile(config, TempFile());

            try
            {
                action.RunWith(db);
            }
            finally
            {
                db.Close();
            }
        }
Exemplo n.º 2
0
 private void WithDatabase(AccessFieldTestCaseBase.IDatabaseAction action)
 {
     WithDatabase(NewConfiguration(), action);
 }