public SaveForWeb ( string sourceFileName, string relativeSourcePath, string relativeTargetPath ) : bool | ||
sourceFileName | string | |
relativeSourcePath | string | |
relativeTargetPath | string | |
return | bool |
public void should_save_image() { IFileService fileService = new FileService(context); IImageService service = new ImageService(fileService, context); var isSaved = service.SaveForWeb(fileName, imageDirectory, targetDirectory); Assert.That(isSaved); }
public void should_save_image_and_create_new_directory() { IFileService fileService = new FileService(context); IImageService service = new ImageService(fileService, context); var isSaved = service.SaveForWeb(fileName, rawfilePath, targetDirectory); Assert.That(isSaved); Assert.That(Directory.Exists(targetDirectory + contentType)); }