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)
285var doc = await service.GetDocumentAsync("redis-integration"); 305var doc = await service.GetDocumentAsync("REDIS-INTEGRATION"); 324var doc = await service.GetDocumentAsync("nonexistent-doc"); 348var doc = await service.GetDocumentAsync("redis-integration", "Installation"); 369var doc = await service.GetDocumentAsync("redis-integration", "Getting Started"); 395var doc = await service.GetDocumentAsync("redis-integration"); 486var doc = await service.GetDocumentAsync(null!); 504var doc = await service.GetDocumentAsync(""); 522var doc = await service.GetDocumentAsync(" "); 566var doc = await service.GetDocumentAsync("any-slug"); 595await Assert.ThrowsAsync<TimeoutException>(() => service.GetDocumentAsync("redis-integration").AsTask()); 677var doc = await service.GetDocumentAsync("redis-integration", "NonExistentSection");