Beispiel #1
0
 public void TestSetUp()
 {
     storageSystem = new InMemoryStorageSystem();
     testStore = storageSystem.CreateStore("TestStore");
     objStore = new ObjectStore(1, testStore);
     objStore.Create();
 }
Beispiel #2
0
 public void TestTearDown()
 {
     storageSystem.DeleteStore(testStore);
     storageSystem.Dispose();
     storageSystem = null;
 }
Beispiel #3
0
        private void InitStorageSystem()
        {
            var storeSystemType = this.StorageSystemType();
            if (storeSystemType == null)
                throw new DatabaseConfigurationException("Storage system type is required.");

            try {
                if (storeSystemType == typeof (InMemoryStorageSystem)) {
                    StoreSystem = new InMemoryStorageSystem();
                } else {
                    StoreSystem = CreateExternalStoreSystem(storeSystemType);
                }

                // TODO: File and single-file
            } catch (Exception ex) {
                throw new DatabaseConfigurationException("Could not initialize the storage system", ex);
            }
        }