public FilesMoverService(FilesMoverServiceOptions options, ILogger logger, IFilesMover filesMover, IFoldersListener foldersListener) { _rules = options.Rules; _defaultDestinationFolder = options.DefaultDestinationFolder; _logger = logger; _filesMover = filesMover; _foldersListener = foldersListener; _foldersListener.FileCreated += ProccessCreatedFile; }
public FilesMoverService(FilesMoverServiceOptions options) { _rules = options.Rules; _defaultDestinationFolder = options.DefaultDestinationFolder; _logger = new ConsoleLogger(); _filesMover = new DefaultFilesMover(_logger); _foldersListener = new DefaultFoldersListener(options.Folders, _logger); _foldersListener.FileCreated += ProccessCreatedFile; }