/// <summary> /// Sets the items database and feeds.db database files to non-deployed paths /// </summary> public void UnitTestMode() { var feedDatabaseConnection = string.Format("Data Source={0}/Feeds.db;Version=3;", "/Volumes/Public/Monotouch/ReallySimple/ReallySimple.UI"); var userDatabaseFilePath = string.Format("{0}/User.db", "/tmp"); string itemsDbFilePath = string.Format("{0}/{1}", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), Settings.Current.ItemsDatabaseFilename); var userDatabaseConnection = string.Format("Data Source={0};Version=3;", itemsDbFilePath); RepositoryInstance.WipeUserDatabase(); }
public void ClearCache(bool deleteImages) { ImageDownloader.Current.TryStop(); RepositoryInstance.WipeUserDatabase(); ItemCache.Current.Clear(); LastUpdate = DateTime.Now.AddDays(-1); LastControllerId = ""; LastItemId = ""; if (deleteImages) { ClearImageCache(); } }