public ArticlePictureNameFormatter( ArticlePictureSettings pictureSettings) { if (pictureSettings == null) { throw new ArgumentNullException(nameof(pictureSettings)); } this.pictureSettings = pictureSettings; }
public ArticlePicturePathFormatter( ArticlePictureSettings settings, IArticlePictureNameFormatter formatter) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } if (formatter == null) { throw new ArgumentNullException(nameof(formatter)); } this.settings = settings; this.formatter = formatter; }
public ArticlePictureLocator( IFileService fileService, IArticlePictureNameFormatter nameFormatter, ArticlePictureSettings settings) { if (fileService == null) { throw new ArgumentNullException(nameof(fileService)); } if (nameFormatter == null) { throw new ArgumentNullException(nameof(nameFormatter)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } this.fileService = fileService; this.nameFormatter = nameFormatter; this.settings = settings; availableArticlePictureCache = new List <string>(); }