public string FormatPath(Article article)
        {
            if (article == null)
            {
                throw new ArgumentNullException(nameof(article));
            }

            string fileName = settings.FormatPictureFileName(formatter.FormatName(article));

            return($"{settings.PictureFolderPath}/{fileName}");
        }
Esempio n. 2
0
 private string GetPictureFileNameFor(Article article)
 {
     return(settings.FormatPictureFileName(
                nameFormatter.FormatName(article)));
 }