9 references to Factory
Aspire.Azure.Messaging.EventHubs.Tests (2)
ConformanceTestsBase.cs (2)
84
var healthCheck1 = registration.
Factory
(host.Services) as AzureEventHubHealthCheck;
85
var healthCheck2 = registration.
Factory
(host.Services) as AzureEventHubHealthCheck;
Aspire.Hosting.Kafka.Tests (3)
AddKafkaTests.cs (3)
28
var exception = Assert.Throws<InvalidOperationException>(() => registration.
Factory
(app.Services));
33
var check = Assert.IsType<KafkaHealthCheck>(registration.
Factory
(app.Services));
69
Assert.Same(check, registration.
Factory
(scope.ServiceProvider));
Aspire.Hosting.Tests (1)
HealthCheckTests.cs (1)
99
var healthCheck = registration.
Factory
(app.Services);
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
81
var healthCheck = registration.
Factory
(scope.ServiceProvider);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
ApplicationLifecycleHealthChecksExtensionsTests.cs (1)
61
Assert.True(r.
Factory
(serviceProvider) is T);
ManualHealthCheckExtensionsTests.cs (1)
56
_ = Assert.IsType<T>(r.
Factory
(serviceProvider));