101 references to new
Microsoft.Extensions.DocumentExtraction.Abstractions.Tests (5)
DelegatingDocumentExtractionClientTests.cs (1)
67ExtractionDocumentSection section = new();
DocumentExtractionDocumentBuilderTests.cs (4)
115ExtractionDocumentSection root = new(new TextContent("supplied section")); 116ExtractionDocumentSection nested = new(new TextContent("supplied nested")); 175ExtractionDocumentSection section = new(); 219result.Sections.Add(new());
Microsoft.Extensions.DocumentExtraction.Tests (3)
DocumentExtractionMiddlewareTests.cs (3)
250ExtractionDocumentSection section = new(); 374ExtractionDocumentSection section = new(); 527ExtractionDocumentSection section = new();
Microsoft.Extensions.Documents.Abstractions.Tests (93)
DocumentElementTests.cs (11)
18ExtractionDocumentSection section = new(null); 59ExtractionDocumentSection section = new(null); 96ExtractionDocumentSection section = new(null); 108ExtractionDocumentSection section = new(null); 127ExtractionDocumentSection section = new(null); 134ExtractionDocumentSection child = new(null); 149ExtractionDocumentSection section = new(null); 169ExtractionDocumentSection section = new(null); 192ExtractionDocumentSection section = new(null); 221ExtractionDocumentSection section = new(null); 240ExtractionDocumentSection section = new(null);
DocumentExtensionElementTests.cs (1)
77ExtractionDocumentSection section = new(null);
DocumentImageElementTests.cs (2)
63ExtractionDocumentSection section = new(null); 101ExtractionDocumentSection section = new(null);
DocumentReferencesTests.cs (1)
214ExtractionDocumentSection section = new(null);
DocumentReviewFollowUpTests.cs (10)
19ExtractionDocumentSection section = new(); 48ExtractionDocumentSection section = new(); 69ExtractionDocumentSection root = new(); 70ExtractionDocumentSection child = new(); 87ExtractionDocumentSection section = new(); 101ExtractionDocumentSection root = new(new TextContent("local")); 102ExtractionDocumentSection shared = new(); 131ExtractionDocumentSection section = new(); 146ExtractionDocumentSection section = new(); 189ExtractionDocumentSection section = new();
DocumentSectionTests.cs (4)
16ExtractionDocumentSection section = new(new TextContent("stored section markdown")); 25ExtractionDocumentSection section = new(new TextContent("stored section markdown")); 36ExtractionDocumentSection root = new(null); 38ExtractionDocumentSection nested = new(null);
DocumentTableCellCollectionTests.cs (14)
42ExtractionDocumentSection section = new(null); 82ExtractionDocumentSection section = new(null); 131ExtractionDocumentSection root = new(); 159ExtractionDocumentSection mixed = new(); 254ExtractionDocumentSection root = new(); 256ExtractionDocumentSection mixed = new(); 318ExtractionDocumentSection section = new(); 331ExtractionDocumentSection section = new(null); 356ExtractionDocumentSection section = new(null); 386ExtractionDocumentSection section = new(null); 422ExtractionDocumentSection section = new(null); 437ExtractionDocumentSection section = new(null); 478ExtractionDocumentSection otherSection = new(null); 512ExtractionDocumentSection section = new(null);
DocumentTableCellTests.cs (7)
17ExtractionDocumentSection section = new(null); 35ExtractionDocumentSection firstSection = new(null); 36ExtractionDocumentSection secondSection = new(null); 76ExtractionDocumentSection section = new(null); 116ExtractionDocumentSection section = new(null); 174ExtractionDocumentSection first = new(null); 175ExtractionDocumentSection second = new(null);
DocumentTableElementTests.cs (7)
58ExtractionDocumentSection section = new(null); 231ExtractionDocumentSection section = new(null); 256ExtractionDocumentSection section = new(null); 301ExtractionDocumentSection section = new(null); 340ExtractionDocumentSection section = new(null); 363ExtractionDocumentSection section = new(null); 386ExtractionDocumentSection section = new(null);
DocumentTests.Composition.cs (3)
29ExtractionDocumentSection section = new(null); 84ExtractionDocumentSection section = new(null); 85ExtractionDocumentSection nested = new(null);
DocumentTests.cs (12)
55ExtractionDocumentSection section = new(null); 75ExtractionDocumentSection first = new(null); 76ExtractionDocumentSection second = new(null); 112ExtractionDocumentSection first = new(null); 114ExtractionDocumentSection nested = new(null); 119ExtractionDocumentSection second = new(null); 143ExtractionDocumentSection root = new(null); 144ExtractionDocumentSection nested = new(null); 166ExtractionDocumentSection first = new(null); 167ExtractionDocumentSection second = new(null); 193document.Sections.Add(new ExtractionDocumentSection()); 231ExtractionDocumentSection section = new(null);
DocumentTests.StandardContent.cs (17)
36ExtractionDocumentSection section = new(new TextContent(markdown)); 50ExtractionDocumentSection inner = new(); 51ExtractionDocumentSection outer = new(); 73ExtractionDocumentSection section = new(); 91ExtractionDocumentSection section = new(new TextContent(string.Empty)); 108ExtractionDocumentSection section = new(); 123ExtractionDocumentSection section = new(); 148ExtractionDocumentSection section = new(payload); 166ExtractionDocumentSection section = new(new TextContent("section introduction")); 167ExtractionDocumentSection transparent = new(); 192ExtractionDocumentSection section = new(); 217ExtractionDocumentSection section = new(owner == "section" ? payload : null); 238ExtractionDocumentSection section = new(); 331"section" => new ExtractionDocumentSection(payload), 338ExtractionDocumentSection section = new(); 372ExtractionDocumentSection section = new(); 388ExtractionDocumentSection section = new();
DocumentTextElementTests.cs (2)
33ExtractionDocumentSection section = new(null); 118ExtractionDocumentSection section = new(null);
PreviewContractTests.cs (2)
44ExtractionDocumentElement[] elements = [new ExtractionDocumentSection(), new ExtractionDocumentTableElement(null, 1, 1), new ExtractionDocumentImageElement(), new CustomElement()]; 93ExtractionDocumentSection section = new();