public DocumentParser(ISplitterHelper textSplitter, ITextParserFactory textParserFactory) { Guard.NotNull(() => textSplitter, textSplitter); Guard.NotNull(() => textParserFactory, textParserFactory); this.textSplitter = textSplitter; this.textParserFactory = textParserFactory; }
public ParserController(ILoggerFactory loggerFactory, ITextParserFactory parser, IEnviromentHandler handler) : base(loggerFactory) { parserFactory = parser ?? throw new ArgumentNullException(nameof(parser)); this.handler = handler ?? throw new ArgumentNullException(nameof(handler)); }