1 write to _services
Microsoft.Extensions.Resilience.Tests (1)
Resilience\ResilienceServiceCollectionExtensionsTests.cs (1)
27
_services
= new ServiceCollection().AddResilienceEnricher();
7 references to _services
Microsoft.Extensions.Resilience.Tests (7)
Resilience\ResilienceServiceCollectionExtensionsTests.cs (7)
28
_services
.TryAddSingleton(_summarizer.Object);
34
var count =
_services
.Count;
36
_services
.AddResilienceEnricher();
38
var enrichers =
_services
.BuildServiceProvider().GetRequiredService<IOptions<TelemetryOptions>>().Value.MeteringEnrichers;
56
var count =
_services
.Count;
58
_services
.AddResilienceEnricher();
60
_services
.Count.Should().Be(count);