public GetAvailableOutputFolder( IGetPathWithSanitizedFolderName getPathWithSanitizedFolderName, IDirectoryExists directoryExists) { this.getPathWithSanitizedFolderName = getPathWithSanitizedFolderName; this.directoryExists = directoryExists; }
public GetAvailableOutputFolderTests() { this.getPathWithSanitizedFolderName = Substitute.For <IGetPathWithSanitizedFolderName>(); this.directoryExists = Substitute.For <IDirectoryExists>(); this.getPathWithSanitizedFolderName.Execute(OutputFolderPath).Returns(SanitizedOutputFolderPath); this.target = new GetAvailableOutputFolder( this.getPathWithSanitizedFolderName, this.directoryExists); }