public void CreateOverwriteStoreTest() { SqliteCatalogStoreManager mgr = new SqliteCatalogStoreManager(); String storePath = GetThrowawayStorePath(); using (ICatalogStore store = mgr.CreateCatalogStore(storePath, false)) { } _storesToCleanup.Add(storePath); using (ICatalogStore store = mgr.CreateCatalogStore(storePath, true)) { } }
public void CreateDeleteStoreTest() { SqliteCatalogStoreManager mgr = new SqliteCatalogStoreManager(); String storePath = GetThrowawayStorePath(); using (ICatalogStore store = mgr.CreateCatalogStore(storePath, false)) { } mgr.DeleteCatalogStore(storePath); Assert.IsFalse(File.Exists(storePath)); _storesToCleanup.Add(storePath); }
public void OpenExistingStoreTest() { SqliteCatalogStoreManager mgr = new SqliteCatalogStoreManager(); String storePath = GetThrowawayStorePath(); using (ICatalogStore store = mgr.CreateCatalogStore(storePath, false)) { } _storesToCleanup.Add(storePath); using (ICatalogStore store = mgr.OpenCatalogStore(storePath)) { } }
public void CreateStore() { SqliteCatalogStoreManager mgr = new SqliteCatalogStoreManager(); _store = mgr.CreateCatalogStore(Path.GetTempFileName(), true); _store2 = mgr.OpenCatalogStore(_store.Uri); }