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)); }
public FileSystemPackageCacheService(string storagePath) { if (storagePath == null) { throw new ArgumentNullException(nameof(storagePath)); } _fsStorageProvider = new FilePackageStorageService(storagePath); }
public FactsBase() { _storePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); _target = new FilePackageStorageService(_storePath); }