7 instantiations of TestEnricher
Microsoft.Extensions.Http.Diagnostics.Tests (7)
Logging\AcceptanceTests.cs (1)
66
.AddSingleton<IHttpClientLogEnricher, TestEnricher>(static _ => new
TestEnricher
(throwOnEnrich: true))
Logging\HttpClientLoggerTest.cs (6)
165
var testEnricher = new
TestEnricher
();
264
var testEnricher = new
TestEnricher
();
369
var testEnricher = new
TestEnricher
();
465
var testEnricher = new
TestEnricher
();
580
var testEnricher = new
TestEnricher
();
843
var testEnricher = new
TestEnricher
();
12 references to TestEnricher
Microsoft.Extensions.Http.Diagnostics.Tests (12)
Logging\AcceptanceTests.cs (6)
66
.AddSingleton<IHttpClientLogEnricher,
TestEnricher
>(static _ => new TestEnricher(throwOnEnrich: true))
79
Assert.StartsWith($"An error occurred in enricher '{typeof(
TestEnricher
).FullName}'", firstLogRecord.Message);
101
.AddHttpClientLogEnricher<
TestEnricher
>()
119
var
enricher2 = sp.GetServices<IHttpClientLogEnricher>().SingleOrDefault(enn => enn is
TestEnricher
) as
TestEnricher
;
Logging\HttpClientLoggerTest.cs (6)
165
var
testEnricher = new TestEnricher();
264
var
testEnricher = new TestEnricher();
369
var
testEnricher = new TestEnricher();
465
var
testEnricher = new TestEnricher();
580
var
testEnricher = new TestEnricher();
843
var
testEnricher = new TestEnricher();