コード例 #1
0
        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)) {
            }
        }
コード例 #2
0
        public void OpenMissingStoreTest()
        {
            SqliteCatalogStoreManager mgr = new SqliteCatalogStoreManager();

            String storePath = GetThrowawayStorePath();
            using (ICatalogStore store = mgr.OpenCatalogStore(storePath)) {
            }
        }
コード例 #3
0
 public void CreateStore()
 {
     SqliteCatalogStoreManager mgr = new SqliteCatalogStoreManager();
     _store = mgr.CreateCatalogStore(Path.GetTempFileName(), true);
     _store2 = mgr.OpenCatalogStore(_store.Uri);
 }