77 references to ToListAsync
Microsoft.Extensions.DataIngestion.Tests (39)
Chunkers\DocumentChunkerTests.cs (2)
20await Assert.ThrowsAsync<ArgumentNullException>("document", async () => await chunker.ProcessAsync(null!).ToListAsync()); 29IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(emptyDoc).ToListAsync();
Chunkers\DocumentTokenChunkerTests.cs (1)
27IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
Chunkers\HeaderChunkerTests.cs (8)
40IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 72IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 97await Assert.ThrowsAsync<InvalidOperationException>(async () => await lessThanContext.ProcessAsync(doc).ToListAsync()); 100await Assert.ThrowsAsync<InvalidOperationException>(async () => await sameAsContext.ProcessAsync(doc).ToListAsync()); 120IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 138await Assert.ThrowsAsync<InvalidOperationException>(async () => await chunker.ProcessAsync(document).ToListAsync()); 147IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(document).ToListAsync(); 177IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(document).ToListAsync();
Chunkers\NoOverlapTokenChunkerTests.cs (2)
33IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 54IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
Chunkers\OverlapTokenChunkerTests.cs (1)
39IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
Chunkers\SectionChunkerTests.cs (6)
33IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 66IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 84IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 127IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 156IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 177IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
Chunkers\SemanticSimilarityChunkerTests.cs (3)
57IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 100IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 176IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
IngestionPipelineTests.cs (7)
90List<IngestionResult> ingestionResults = await pipeline.ProcessAsync(_sampleFiles).ToListAsync(); 99.ToListAsync(); 125List<IngestionResult> ingestionResults = await pipeline.ProcessAsync(directory, "*.md").ToListAsync(); 133.ToListAsync(); 158var ingestionResults = await pipeline.ProcessAsync(_sampleFiles).ToListAsync(); 163.ToListAsync(); 211List<IngestionResult> ingestionResults = await results.ToListAsync();
Processors\ClassificationEnricherTests.cs (2)
90IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(CreateChunks().ToAsyncEnumerable()).ToListAsync(); 111IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks.ToAsyncEnumerable()).ToListAsync();
Processors\KeywordEnricherTests.cs (2)
92IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks).ToListAsync(); 111IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks.ToAsyncEnumerable()).ToListAsync();
Processors\SentimentEnricherTests.cs (2)
75var chunks = await sut.ProcessAsync(input).ToListAsync(); 98IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks.ToAsyncEnumerable()).ToListAsync();
Processors\SummaryEnricherTests.cs (2)
75var chunks = await sut.ProcessAsync(input).ToListAsync(); 95IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks.ToAsyncEnumerable()).ToListAsync();
Writers\VectorStoreWriterTests.cs (1)
163.ToListAsync();
Microsoft.Extensions.VectorData.ConformanceTests (38)
CollectionManagementTests.cs (2)
69Assert.Empty(await store.ListCollectionNamesAsync().Where(n => n == collection.Name).ToListAsync()); 73var name = Assert.Single(await store.ListCollectionNamesAsync().Where(n => n == collection.Name).ToListAsync());
DistanceFunctionTests.cs (4)
106var results = await collection.SearchAsync(baseVector, top: 3).ToListAsync(); 133.ToListAsync(); 142.ToListAsync(); 151.ToListAsync();
EmbeddingGenerationTests.cs (4)
153var exception = await Assert.ThrowsAsync<NotSupportedException>(() => collection.SearchAsync("foo", top: 1).ToListAsync().AsTask()); 174var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => collection.SearchAsync(8, top: 1).ToListAsync().AsTask()); 312var exception = await Assert.ThrowsAsync<NotSupportedException>(() => collection.SearchAsync("[1, 0, 0]", top: 1, new() { IncludeVectors = true }).ToListAsync().AsTask()); 336.ToListAsync().AsTask());
FilterTests.cs (3)
53new() { Filter = r => r["String = \"not\"; DROP TABLE FilterTests;"] == "" }).ToListAsync()); 518.ToListAsync(); 538.ToListAsync();
HybridSearchTests.cs (8)
28var results = await vectorAndStringFixture.HybridSearchable.HybridSearchAsync(vector, ["Grapes"], top: 3).ToListAsync(); 50.ToListAsync(); 65var results = await vectorAndStringFixture.HybridSearchable.HybridSearchAsync(vector, ["Oranges"], top: 1).ToListAsync(); 82var results = await vectorAndStringFixture.HybridSearchable.HybridSearchAsync(vector, ["healthy"], top: 3, new() { Skip = 2 }).ToListAsync(); 97var results = await vectorAndStringFixture.HybridSearchable.HybridSearchAsync(vector, ["tangy", "nourishing"], top: 3).ToListAsync(); 116.ToListAsync(); 119.ToListAsync(); 138.ToListAsync());
ModelTests\BasicModelTests.cs (7)
79var received = await Collection.GetAsync(ids).ToListAsync(); 108.ToListAsync(); 138.ToListAsync(); 147.ToListAsync(); 174.ToListAsync(); 183.ToListAsync(); 196.ToListAsync();
ModelTests\DynamicModelTests.cs (6)
93.ToListAsync(); 133.ToListAsync(); 142.ToListAsync(); 172.ToListAsync(); 181.ToListAsync(); 194.ToListAsync();
ModelTests\MultiVectorModelTests.cs (1)
73await Collection.SearchAsync(new ReadOnlyMemory<float>([1, 2, 3]), top: 1).ToListAsync());
TypeTests\KeyTypeTests.cs (3)
86var results = await collection.GetAsync([key1, key2]).ToListAsync(); 134var dynamicResults = await dynamicCollection.GetAsync([key1, key2]).ToListAsync(); 205var results = await collectionWithAutoGeneration.GetAsync([key1, recordWithDefaultValueKey1.Key, recordWithDefaultValueKey2.Key, recordWithDefaultValueKey3.Key]).ToListAsync();