public void TestSetUp() { storageSystem = new InMemoryStorageSystem(); testStore = storageSystem.CreateStore("TestStore"); objStore = new ObjectStore(1, testStore); objStore.Create(); }
public void TestTearDown() { storageSystem.DeleteStore(testStore); storageSystem.Dispose(); storageSystem = null; }
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); } }