/// <summary>
        /// Get default storage path.
        /// </summary>
        /// <param name="dataId"></param>
        /// <returns></returns>
        public static string GetDefaultDataDir(string dataId)
        {
            IIOService ioService   = ServiceFinder.Resolve <IIOService> ();
            string     dirName     = "com_feedhenry_sync";
            string     dataDirPath = Path.Combine(ioService.GetDataPersistDir(), dataId, dirName);

            return(dataDirPath);
        }
		public InMemoryDataStoreTest()
        {
            FHClient.Init();
            _ioService = ServiceFinder.Resolve<IIOService>();
            var dataDir = _ioService.GetDataPersistDir();
            var dataPersistDir = Path.Combine(dataDir, "syncTestDir");
            _dataPersistFile = Path.Combine(dataPersistDir, ".test_data_file");
        }
Exemple #3
0
        public InMemoryDataStoreTest()
        {
            FHClient.Init();
            _ioService = ServiceFinder.Resolve <IIOService>();
            var dataDir        = _ioService.GetDataPersistDir();
            var dataPersistDir = Path.Combine(dataDir, "syncTestDir");

            _dataPersistFile = Path.Combine(dataPersistDir, ".test_data_file");
        }
 public void SetUp()
 {
     FHClient.Init();
     ioService = ServiceFinder.Resolve<IIOService>();
     string dataDir = ioService.GetDataPersistDir();
     dataPersistDir = Path.Combine(dataDir, "syncTestDir");
     if(Directory.Exists(dataPersistDir)){
         Directory.Delete(dataPersistDir);
     }
     dataPersistFile = Path.Combine(dataPersistDir, ".test_data_file");
     Debug.WriteLine(String.Format("Data persist path = {0}", dataPersistFile));
 }
 public void SetUp()
 {
     FHClient.Init();
     _ioService = ServiceFinder.Resolve<IIOService>();
     var dataDir = _ioService.GetDataPersistDir();
     _dataPersistDir = Path.Combine(dataDir, "syncTestDir");
     if (Directory.Exists(_dataPersistDir))
     {
         Directory.Delete(_dataPersistDir);
     }
     _dataPersistFile = Path.Combine(_dataPersistDir, ".test_data_file");
     Debug.WriteLine("Data persist path = {0}", _dataPersistFile);
 }
        public void SetUp()
        {
            FHClient.Init();
            _ioService = ServiceFinder.Resolve <IIOService>();
            var dataDir = _ioService.GetDataPersistDir();

            _dataPersistDir = Path.Combine(dataDir, "syncTestDir");
            if (Directory.Exists(_dataPersistDir))
            {
                Directory.Delete(_dataPersistDir);
            }
            _dataPersistFile = Path.Combine(_dataPersistDir, ".test_data_file");
            Debug.WriteLine("Data persist path = {0}", _dataPersistFile);
        }