public string FormatPath(Article article) { if (article == null) { throw new ArgumentNullException(nameof(article)); } string fileName = settings.FormatPictureFileName(formatter.FormatName(article)); return($"{settings.PictureFolderPath}/{fileName}"); }
private string GetPictureFileNameFor(Article article) { return(settings.FormatPictureFileName( nameFormatter.FormatName(article))); }