SaveForWeb() public method

public SaveForWeb ( string sourceFileName, string relativeSourcePath, string relativeTargetPath ) : bool
sourceFileName string
relativeSourcePath string
relativeTargetPath string
return bool
Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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));
        }