コード例 #1
0
        public string FormatPath(Article article)
        {
            if (article == null)
            {
                throw new ArgumentNullException(nameof(article));
            }

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

            return($"{settings.PictureFolderPath}/{fileName}");
        }
コード例 #2
0
 private string GetPictureFileNameFor(Article article)
 {
     return(settings.FormatPictureFileName(
                nameFormatter.FormatName(article)));
 }