4 instantiations of DocsContent
aspire (1)
Documentation\Docs\DocsIndexService.cs (1)
451return new DocsContent
Aspire.Cli.Tests (3)
Commands\DocsCommandTests.cs (2)
158var document = new DocsContent 261["redis-integration"] = new()
Mcp\TestDocsIndexService.cs (1)
58return ValueTask.FromResult<DocsContent?>(new DocsContent
31 references to DocsContent
aspire (5)
Commands\DocsGetCommand.cs (1)
62var doc = await InteractionService.ShowStatusAsync(
Documentation\Docs\DocsIndexService.cs (2)
51ValueTask<DocsContent?> GetDocumentAsync(string slug, string? section = null, CancellationToken cancellationToken = default); 416public async ValueTask<DocsContent?> GetDocumentAsync(string slug, string? section = null, CancellationToken cancellationToken = default)
JsonSourceGenerationContext.cs (1)
49[JsonSerializable(typeof(DocsContent))]
Mcp\Tools\GetDocTool.cs (1)
78var doc = await _docsIndexService.GetDocumentAsync(slug, section, cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (26)
Commands\DocsCommandTests.cs (9)
158var document = new DocsContent 195options.DocsIndexServiceFactory = _ => new TestDocsIndexService(new Dictionary<string, DocsContent> 255private readonly IReadOnlyDictionary<string, DocsContent> _documents; 257public TestDocsIndexService(IReadOnlyDictionary<string, DocsContent>? documents = null) 259_documents = documents ?? new Dictionary<string, DocsContent> 301public ValueTask<DocsContent?> GetDocumentAsync(string slug, string? section = null, CancellationToken cancellationToken = default) 303if (_documents.TryGetValue(slug, out var document)) 305return ValueTask.FromResult<DocsContent?>(document); 308return ValueTask.FromResult<DocsContent?>(null);
Mcp\Docs\DocsIndexServiceTests.cs (14)
336var doc = await service.GetDocumentAsync("redis-integration"); 356var doc = await service.GetDocumentAsync("REDIS-INTEGRATION"); 375var doc = await service.GetDocumentAsync("nonexistent-doc"); 399var doc = await service.GetDocumentAsync("redis-integration", "Installation"); 420var doc = await service.GetDocumentAsync("redis-integration", "Getting Started"); 446var doc = await service.GetDocumentAsync("redis-integration"); 474var doc = await service.GetDocumentAsync("certificate-configuration"); 499var doc = await service.GetDocumentAsync("certificate-configuration"); 635var document = await service.GetDocumentAsync("deploy-to-azure"); 708var doc = await service.GetDocumentAsync(null!); 726var doc = await service.GetDocumentAsync(""); 744var doc = await service.GetDocumentAsync(" "); 788var doc = await service.GetDocumentAsync("any-slug"); 899var doc = await service.GetDocumentAsync("redis-integration", "NonExistentSection");
Mcp\TestDocsIndexService.cs (3)
49public ValueTask<DocsContent?> GetDocumentAsync(string slug, string? section = null, CancellationToken cancellationToken = default) 54return ValueTask.FromResult<DocsContent?>(null); 58return ValueTask.FromResult<DocsContent?>(new DocsContent