SaveForWeb() 공개 메소드

public SaveForWeb ( string sourceFileName, string relativeSourcePath, string relativeTargetPath ) : bool
sourceFileName string
relativeSourcePath string
relativeTargetPath string
리턴 bool
예제 #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);
 }
예제 #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));
        }