コード例 #1
0
 public GetAvailableOutputFolder(
     IGetPathWithSanitizedFolderName getPathWithSanitizedFolderName,
     IDirectoryExists directoryExists)
 {
     this.getPathWithSanitizedFolderName = getPathWithSanitizedFolderName;
     this.directoryExists = directoryExists;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public GetCreatedOutputFolder(IGetPathWithSanitizedFolderName getPathWithSanitizedFolderName)
 {
     this.getPathWithSanitizedFolderName = getPathWithSanitizedFolderName;
 }