public IFormattingFluentSyntax SetFileNameReplacer(string key, string replacement) { FileNameReplacer found = this.options.FileNameReplacer.FirstOrDefault(x => x.Key == key); if (found == null) { throw new InvalidOperationException($"FileNameReplace {key} does not exists. Use {nameof(this.AddFileNameReplacer)} first"); } found.SetReplacement(replacement); return(this); }