public void CreateNewStoreTest()
        {
            SqliteCatalogStoreManager mgr = new SqliteCatalogStoreManager();

            String storePath = GetThrowawayStorePath();
            using (ICatalogStore store = mgr.CreateCatalogStore(storePath, false)) {
            }
            _storesToCleanup.Add(storePath);
        }
        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);
        }
        /// <summary>Uses an existing connection to a SQLite database created as a catalog store.
        ///     Assumes the schema has already been populated.</summary>
        /// 
        /// <param name="conn"></param>
        internal SqliteCatalogStore(SqliteCatalogStoreManager mgr, SQLiteConnection conn, String uri)
        {
            if (conn == null) {
                throw new ArgumentNullException("conn");
            }

            _mgr = mgr;
            //Use this connection for the constructing thread
            //It's reasonable to assume this thread will be doing most
            //of the work w/ the store
            _conn = conn;
            _uri = uri;

            _connStr = conn.ConnectionString;

            _itemCache = new Hashtable();
        }
        public void OpenMissingStoreTest()
        {
            SqliteCatalogStoreManager mgr = new SqliteCatalogStoreManager();

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