Example #1
0
 public DocumentParser(
     IParagraphParser paragraphParser,
     IDocumentParseContextEditor docParseContext)
 {
     this.paragraphParser = paragraphParser;
     this.docParseContext = docParseContext;
 }
        public void Init()
        {
            documentParseContext = new DocumentParseContext();
            base.Init(services => services.AddScoped(sp => documentParseContext));

            documentProvider      = new MockDocumentProviderInfo(ServiceProvider.GetService <IVerseLinkService>());
            versePointerFactory   = ServiceProvider.GetService <IVersePointerFactory>();
            documentParserFactory = ServiceProvider.GetService <IDocumentParserFactory>();
        }
Example #3
0
        public void Init()
        {
            this.documentParseContext = new DocumentParseContext();

            base.Init(services => services.AddScoped(sp => documentParseContext));

            this.documentProvider = new MockDocumentProviderInfo(ServiceProvider.GetService <IVerseLinkService>())
            {
                IsReadonly = true
            };
            this.documentParserFactory = ServiceProvider.GetService <IDocumentParserFactory>();

            this.mockDocumentId = new FileDocumentId(0, null, true);
        }