Base:
method
ProcessAsync
Microsoft.Extensions.DataIngestion.IngestionChunker<T>.ProcessAsync(Microsoft.Extensions.DataIngestion.IngestionDocument, System.Threading.CancellationToken)
8 references to ProcessAsync
Microsoft.Extensions.DataIngestion.Tests (8)
Chunkers\HeaderChunkerTests.cs (8)
39
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(doc).ToListAsync();
71
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(doc).ToListAsync();
96
await Assert.ThrowsAsync<InvalidOperationException>(async () => await lessThanContext.
ProcessAsync
(doc).ToListAsync());
99
await Assert.ThrowsAsync<InvalidOperationException>(async () => await sameAsContext.
ProcessAsync
(doc).ToListAsync());
119
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(doc).ToListAsync();
137
await Assert.ThrowsAsync<InvalidOperationException>(async () => await chunker.
ProcessAsync
(document).ToListAsync());
146
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(document).ToListAsync();
176
IReadOnlyList<IngestionChunk<string>> chunks = await chunker.
ProcessAsync
(document).ToListAsync();