45 references to AddFakeRedaction
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Logging\AcceptanceTests.cs (1)
48services.AddFakeRedaction();
Logging\LoggingOptionsValidationTests.cs (3)
24.AddFakeRedaction() 40.AddFakeRedaction() 56.AddFakeRedaction()
Logging\RequestHeadersEnricherExtensionsTests.cs (2)
44.AddFakeRedaction() 60.AddFakeRedaction()
Microsoft.Extensions.Compliance.Testing.Tests (4)
RedactionFakesAcceptanceTests.cs (4)
119.AddFakeRedaction() 160.AddFakeRedaction() 237Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddFakeRedaction()); 245using var sp = new ServiceCollection().AddFakeRedaction().BuildServiceProvider();
Microsoft.Extensions.Hosting.Testing (1)
FakeHostBuilder.cs (1)
47_builder = _builder.ConfigureServices(services => services.AddFakeRedaction());
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (6)
HttpClientFactory.cs (6)
21.AddFakeRedaction() 45.AddFakeRedaction() 68.AddFakeRedaction() 95.AddFakeRedaction() 118.AddFakeRedaction() 141.AddFakeRedaction()
Microsoft.Extensions.Http.Diagnostics.Tests (22)
Logging\AcceptanceTests.cs (12)
32.AddFakeRedaction() 64.AddFakeRedaction() 98.AddFakeRedaction() 135.AddFakeRedaction() 212.AddFakeRedaction() 448.AddFakeRedaction() 482.AddFakeRedaction() 517.AddFakeRedaction() 583.AddFakeRedaction() 605.AddFakeRedaction() 633.AddFakeRedaction() 659.AddFakeRedaction()
Logging\HttpClientLoggerTest.cs (1)
1012.AddFakeRedaction()
Logging\HttpClientLoggingExtensionsTest.cs (7)
205.AddFakeRedaction() 271.AddFakeRedaction() 315.AddFakeRedaction() 337.AddFakeRedaction() 360.AddFakeRedaction() 380.AddFakeRedaction() 398.AddFakeRedaction()
TelemetryCommonExtensionsTests.cs (2)
40var sp = new ServiceCollection().AddFakeRedaction().AddHttpRouteProcessor().BuildServiceProvider(); 55var sp = new ServiceCollection().AddFakeRedaction().AddHttpHeadersRedactor().BuildServiceProvider();
Microsoft.Extensions.Http.Resilience.Tests (5)
Resilience\HttpClientBuilderExtensionsTests.BySelector.cs (4)
28_builder.Services.AddFakeRedaction(); 49_builder.Services.AddFakeRedaction(); 65_builder.Services.AddFakeRedaction(); 113_builder.Services.AddFakeRedaction();
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
203var services = new ServiceCollection().AddLogging().AddMetrics().AddFakeRedaction();
Microsoft.Extensions.Telemetry.Tests (1)
Http\TelemetryCommonExtensionsTests.cs (1)
38var sp = new ServiceCollection().AddFakeRedaction().AddHttpRouteProcessor().BuildServiceProvider();