コード例 #1
0
        public void CreatesStoreDirectoryIfItDoesNotExist()
        {
            string validButNotExistingPath = Path.Combine(Path.GetTempPath(), System.Guid.NewGuid().ToString("N"));

            Assert.False(Directory.Exists(validButNotExistingPath));
            IPackageStorageService service = new FilePackageStorageService(validButNotExistingPath);

            Assert.False(Directory.Exists(validButNotExistingPath));
        }
コード例 #2
0
        public FileSystemPackageCacheService(string storagePath)
        {
            if (storagePath == null)
            {
                throw new ArgumentNullException(nameof(storagePath));
            }

            _fsStorageProvider = new FilePackageStorageService(storagePath);
        }
コード例 #3
0
 public FactsBase()
 {
     _storePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
     _target    = new FilePackageStorageService(_storePath);
 }