/// <summary> /// Initializes a new instance of the <see cref="NefsWriter"/> class. /// </summary> /// <param name="tempDirPath">Path to a directory that can be used to write temporary files.</param> /// <param name="fileSystem">The file system to use.</param> /// <param name="compressor">Interface used to compress data.</param> public NefsWriter( string tempDirPath, IFileSystem fileSystem, INefsCompressor compressor) { this.TempDirectoryPath = tempDirPath ?? throw new ArgumentNullException(nameof(tempDirPath)); this.FileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem)); this.Compressor = compressor ?? throw new ArgumentNullException(nameof(compressor)); }
public NefsWriterTests() { this.fileSystem.AddDirectory(TempDir); this.compressor = new NefsCompressor(this.fileSystem); }