Implemented interface member:
method
GetDocumentAsync
Aspire.Cli.Mcp.Docs.IDocsIndexService.GetDocumentAsync(System.String, System.String, System.Threading.CancellationToken)
12 references to GetDocumentAsync
Aspire.Cli.Tests (12)
Mcp\Docs\DocsIndexServiceTests.cs (12)
285
var doc = await service.
GetDocumentAsync
("redis-integration");
305
var doc = await service.
GetDocumentAsync
("REDIS-INTEGRATION");
324
var doc = await service.
GetDocumentAsync
("nonexistent-doc");
348
var doc = await service.
GetDocumentAsync
("redis-integration", "Installation");
369
var doc = await service.
GetDocumentAsync
("redis-integration", "Getting Started");
395
var doc = await service.
GetDocumentAsync
("redis-integration");
486
var doc = await service.
GetDocumentAsync
(null!);
504
var doc = await service.
GetDocumentAsync
("");
522
var doc = await service.
GetDocumentAsync
(" ");
566
var doc = await service.
GetDocumentAsync
("any-slug");
595
await Assert.ThrowsAsync<TimeoutException>(() => service.
GetDocumentAsync
("redis-integration").AsTask());
677
var doc = await service.
GetDocumentAsync
("redis-integration", "NonExistentSection");