public RenamerRuleBuilder SetNext(RenamerRule rule) { if (rule == null) { throw new ArgumentNullException(nameof(rule)); } _nextRule.Next = rule; _nextRule = rule; return(this); }
public Renamer(ILogger logger, IFileSystem fileSystem, RenamerRule ruleSet) { if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (fileSystem == null) { throw new ArgumentNullException(nameof(fileSystem)); } _logger = logger; _fileSystem = fileSystem; _ruleSet = ruleSet; }
public RenamerRuleBuilder() { _root = _nextRule = RenamerRule.IsTrue; }