public void Initialize() { _file = Substitute.For<IFile>(); _directory = Substitute.For<IDirectory>(); _path = Substitute.For<IPath>(); _path.SetPathDefaultBehavior(); _fileSystemHelper = Substitute.For<IFileSystemHelper>(); _target = new FileOutput(_file, _directory, _path, _fileSystemHelper); }
public void Initialize() { _path = Substitute.For<IPath>(); _path.SetPathDefaultBehavior(); _file = Substitute.For<IFile>(); _directory = Substitute.For<IDirectory>(); _fileSystemHelper = Substitute.For<IFileSystemHelper>(); _geolocationHelper = Substitute.For<IGeolocationHelper>(); _target = new ClassifyOperationTester(_path, _file, _directory, _fileSystemHelper, _geolocationHelper); }
public void Initialize() { _directory = Substitute.For<IDirectory>(); _file = Substitute.For<IFile>(); _path = Substitute.For<IPath>(); _path.SetPathDefaultBehavior(); _tagHelper = Substitute.For<ITagHelper>(); _streamFactory = Substitute.For<IStreamFactory>(); _fileStream = Substitute.For<IFileStream>(); _streamFactory.CreateFileStream(Arg.Any<string>(), Arg.Any<FileMode>(), Arg.Any<FileAccess>(), Arg.Any<FileShare>()).Returns(_fileStream); _geolocHelper = Substitute.For<IGeolocationHelper>(); _target = new FileSystemHelperTester(_directory, _file, _path, _tagHelper, _streamFactory, _geolocHelper); }
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 void Initialize() { _fileSystemHelper = Substitute.For<IFileSystemHelper>(); _file = Substitute.For<IFile>(); _path = Substitute.For<IPath>(); _path.SetPathDefaultBehavior(); _dialog = Substitute.For<IDialog>(); _target = new RenameOperation(_fileSystemHelper, _file, _path, _dialog); }