예제 #1
0
 public FileProcessor(
     string fileName,
     IJournalMeta journalMeta,
     IDocumentFactory documentFactory,
     IXmlFileContentDataService fileManager,
     IArticleMetaHarvester articleMetaHarvester,
     IModelFactory modelFactory,
     ILogger logger)
 {
     this.FileName             = fileName;
     this.journalMeta          = journalMeta ?? throw new ArgumentNullException(nameof(journalMeta));
     this.documentFactory      = documentFactory ?? throw new ArgumentNullException(nameof(documentFactory));
     this.fileManager          = fileManager ?? throw new ArgumentNullException(nameof(fileManager));
     this.articleMetaHarvester = articleMetaHarvester ?? throw new ArgumentNullException(nameof(articleMetaHarvester));
     this.modelFactory         = modelFactory ?? throw new ArgumentNullException(nameof(modelFactory));
     this.logger = logger;
 }
예제 #2
0
 public DocumentWriter(IXmlFileContentDataService filesManager)
 {
     this.filesManager = filesManager ?? throw new ArgumentNullException(nameof(filesManager));
 }
예제 #3
0
 public DocumentReader(IDocumentFactory documentFactory, IXmlFileContentDataService filesManager)
 {
     this.documentFactory = documentFactory ?? throw new ArgumentNullException(nameof(documentFactory));
     this.filesManager    = filesManager ?? throw new ArgumentNullException(nameof(filesManager));
 }