/// <summary> /// Initializes a new instance of the <see cref="SelfMediaDatabase.Core.Operations.Prune.PruneOperation"/> class. /// </summary> /// <param name="directory">Injection wrapper of <see cref="System.IO.Directory"/>.</param> /// <param name="file">Injection wrapper of <see cref="System.IO.File"/>.</param> /// <param name="path">Injection wrapper of <see cref="System.IO.Path"/>.</param> /// <param name="imageComparer">Image comparer.</param> /// <param name="fileSystemHelper">Helper to access to files.</param> public PruneOperation( IDirectory directory, IFile file, IPath path, IImageComparer imageComparer, IFileSystemHelper fileSystemHelper, IDialog dialog, IRenameOperation renameOperation) { if (directory == null) throw new ArgumentNullException("directory"); if (file == null) throw new ArgumentNullException("file"); if (imageComparer == null) throw new ArgumentNullException("imageComparer"); if (fileSystemHelper == null) throw new ArgumentNullException("fileSystemHelper"); if (path == null) throw new ArgumentNullException("path"); if (dialog == null) throw new ArgumentNullException("dialog"); if (renameOperation == null) throw new ArgumentNullException("renameOperation"); _directory = directory; _file = file; _path = path; _imageComparer = imageComparer; _fileSystemHelper = fileSystemHelper; _dialog = dialog; _renameOperation = renameOperation; }
public Engine(IImageComparer imageComparer, IConfigurationStore configurationStore, IUserConfigStore userConfigStore, ILogger <Engine> logger, IBrowserFactory browserFactory, IDirectoryUtils directoryUtils, IRazorRenderer razorRenderer) { _imageComparer = imageComparer; _configurationStore = configurationStore; _userConfigStore = userConfigStore; _logger = logger; _browserFactory = browserFactory; _directoryUtils = directoryUtils; _razorRenderer = razorRenderer; }
public void Initialize() { _directory = Substitute.For<IDirectory>(); _file = Substitute.For<IFile>(); _path = Substitute.For<IPath>(); _imageComparer = Substitute.For<IImageComparer>(); _fileSystemHelper = Substitute.For<IFileSystemHelper>(); _dialog = Substitute.For<IDialog>(); _renameOperation = Substitute.For<IRenameOperation>(); _path.SetPathDefaultBehavior(); _target = new PruneOperation(_directory, _file, _path, _imageComparer, _fileSystemHelper, _dialog, _renameOperation); }
public ImageDataMatchingStrategy(IImageComparer imageComparer) { _imageComparer = imageComparer; }
protected BaseImageComparerFilterStrategy(IImageComparer imageComparer, IImageData hole, int tolerance) { _imageComparer = imageComparer; _hole = hole; _tolerance = tolerance; }