12 instantiations of ApiDocsIndexService
Aspire.Cli.Tests (12)
Mcp\ApiDocs\ApiDocsIndexServiceTests.cs (11)
176
var service = new
ApiDocsIndexService
(fetcher, new TestApiDocsCache(), new ConfigurationBuilder().Build(), NullLogger<ApiDocsIndexService>.Instance);
270
var service = new
ApiDocsIndexService
(fetcher, new TestApiDocsCache(), configuration, NullLogger<ApiDocsIndexService>.Instance);
312
var service = new
ApiDocsIndexService
(fetcher, new TestApiDocsCache(), configuration, NullLogger<ApiDocsIndexService>.Instance);
347
var service = new
ApiDocsIndexService
(fetcher, new TestApiDocsCache(), configuration, NullLogger<ApiDocsIndexService>.Instance);
380
var firstService = new
ApiDocsIndexService
(fetcher, cache, new ConfigurationBuilder().Build(), NullLogger<ApiDocsIndexService>.Instance);
387
var secondService = new
ApiDocsIndexService
(fetcher, cache, new ConfigurationBuilder().Build(), NullLogger<ApiDocsIndexService>.Instance);
399
var firstService = new
ApiDocsIndexService
(
415
var secondService = new
ApiDocsIndexService
(
478
return new
ApiDocsIndexService
(fetcher, new TestApiDocsCache(), configuration ?? new ConfigurationBuilder().Build(), NullLogger<ApiDocsIndexService>.Instance);
523
return new
ApiDocsIndexService
(fetcher, new TestApiDocsCache(), new ConfigurationBuilder().Build(), NullLogger<ApiDocsIndexService>.Instance);
579
return new
ApiDocsIndexService
(fetcher, new TestApiDocsCache(), new ConfigurationBuilder().Build(), NullLogger<ApiDocsIndexService>.Instance);
Utils\CliTestHelper.cs (1)
738
return new
ApiDocsIndexService
(fetcher, cache, configuration, logger);
34 references to ApiDocsIndexService
aspire (3)
Documentation\ApiDocs\ApiDocsIndexService.cs (2)
304
internal sealed partial class ApiDocsIndexService(IApiDocsFetcher fetcher, IApiDocsCache cache, IConfiguration configuration, ILogger<
ApiDocsIndexService
> logger) : IApiDocsIndexService
331
private readonly ILogger<
ApiDocsIndexService
> _logger = logger;
Program.cs (1)
524
builder.Services.AddSingleton<IApiDocsIndexService,
ApiDocsIndexService
>();
Aspire.Cli.Tests (31)
Mcp\ApiDocs\ApiDocsIndexServiceTests.cs (30)
20
var
service = CreateService();
72
var
service = CreateService();
86
var
service = CreateService();
100
var
service = CreateWithEnvironmentService();
116
var
service = CreateDistributedApplicationService();
176
var
service = new ApiDocsIndexService(fetcher, new TestApiDocsCache(), new ConfigurationBuilder().Build(), NullLogger<
ApiDocsIndexService
>.Instance);
190
var
service = CreateService();
215
var
service = CreateService();
229
var
service = CreateService();
270
var
service = new ApiDocsIndexService(fetcher, new TestApiDocsCache(), configuration, NullLogger<
ApiDocsIndexService
>.Instance);
312
var
service = new ApiDocsIndexService(fetcher, new TestApiDocsCache(), configuration, NullLogger<
ApiDocsIndexService
>.Instance);
347
var
service = new ApiDocsIndexService(fetcher, new TestApiDocsCache(), configuration, NullLogger<
ApiDocsIndexService
>.Instance);
380
var
firstService = new ApiDocsIndexService(fetcher, cache, new ConfigurationBuilder().Build(), NullLogger<
ApiDocsIndexService
>.Instance);
387
var
secondService = new ApiDocsIndexService(fetcher, cache, new ConfigurationBuilder().Build(), NullLogger<
ApiDocsIndexService
>.Instance);
399
var
firstService = new ApiDocsIndexService(
411
NullLogger<
ApiDocsIndexService
>.Instance);
415
var
secondService = new ApiDocsIndexService(
419
NullLogger<
ApiDocsIndexService
>.Instance);
428
private static
ApiDocsIndexService
CreateService(IConfiguration? configuration = null)
478
return new ApiDocsIndexService(fetcher, new TestApiDocsCache(), configuration ?? new ConfigurationBuilder().Build(), NullLogger<
ApiDocsIndexService
>.Instance);
481
private static
ApiDocsIndexService
CreateWithEnvironmentService()
523
return new ApiDocsIndexService(fetcher, new TestApiDocsCache(), new ConfigurationBuilder().Build(), NullLogger<
ApiDocsIndexService
>.Instance);
526
private static
ApiDocsIndexService
CreateDistributedApplicationService()
579
return new ApiDocsIndexService(fetcher, new TestApiDocsCache(), new ConfigurationBuilder().Build(), NullLogger<
ApiDocsIndexService
>.Instance);
Utils\CliTestHelper.cs (1)
737
var logger = serviceProvider.GetRequiredService<ILogger<
ApiDocsIndexService
>>();