//init public TemporaryStorageTests() { var fileRepository = new FileRepository(); _tempStorage = new TemporaryStorage <SignalEvent <long> >(fileRepository); string storageFolder = _tempStorage.GetStorageFolder(); DirectoryInfo directory = new DirectoryInfo(storageFolder); if (directory.Exists) { foreach (FileInfo file in directory.GetFiles()) { file.Delete(); } } }