123 references to TestLoggerFactory
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMetadataFactoryTests.cs (1)
600var options = new FormDataMapperOptions(new TestLoggerFactory(sink, enabled: true));
Microsoft.AspNetCore.Components.Tests (2)
Lifetime\ComponentStatePersistenceManagerTest.cs (2)
187var loggerFactory = new TestLoggerFactory(sink, true); 213var loggerFactory = new TestLoggerFactory(sink, true);
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionHandlerTest.cs (1)
609var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
1045var loggerFactory = new TestLoggerFactory(testSink, enabled: true);
Microsoft.AspNetCore.Http.Tests (1)
ResponseCookiesTest.cs (1)
32var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.HttpLogging.Tests (2)
FileLoggerProcessorTests.cs (2)
224var testLogger = new TestLoggerFactory(testSink, enabled:true); 248var testLogger2 = new TestLoggerFactory(testSink2, enabled:true);
Microsoft.AspNetCore.HttpsPolicy.Tests (12)
HstsMiddlewareTests.cs (5)
177var loggerFactory = new TestLoggerFactory(sink, enabled: true); 227var loggerFactory = new TestLoggerFactory(sink, enabled: true); 282var loggerFactory = new TestLoggerFactory(sink, enabled: true); 334var loggerFactory = new TestLoggerFactory(sink, enabled: true); 381var loggerFactory = new TestLoggerFactory(sink, enabled: true);
HttpsRedirectionMiddlewareTests.cs (7)
26var loggerFactory = new TestLoggerFactory(sink, enabled: true); 76var loggerFactory = new TestLoggerFactory(sink, enabled: true); 132var loggerFactory = new TestLoggerFactory(sink, enabled: true); 237var loggerFactory = new TestLoggerFactory(sink, enabled: true); 323var loggerFactory = new TestLoggerFactory(sink, enabled: true); 376var loggerFactory = new TestLoggerFactory(sink, enabled: true); 418var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.Localization.Tests (2)
CookieRequestCultureProviderTest.cs (2)
174var loggerFactory = new TestLoggerFactory(sink, enabled: true); 234var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.Mvc.Core.Test (35)
Filters\DisableRequestSizeLimitFilterTest.cs (3)
58var loggerFactory = new TestLoggerFactory(sink, enabled: true); 77var loggerFactory = new TestLoggerFactory(sink, enabled: true); 99var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Filters\RequestFormLimitsFilterTest.cs (3)
60var loggerFactory = new TestLoggerFactory(sink, enabled: true); 84var loggerFactory = new TestLoggerFactory(sink, enabled: true); 109var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Filters\RequestSizeLimitFilterTest.cs (3)
61var loggerFactory = new TestLoggerFactory(sink, enabled: true); 81var loggerFactory = new TestLoggerFactory(sink, enabled: true); 104var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Infrastructure\ActionSelectorTest.cs (1)
496var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Infrastructure\ControllerActionInvokerTest.cs (1)
1552var loggerFactory = new TestLoggerFactory(testSink, enabled: true);
Infrastructure\JsonResultExecutorTestBase.cs (2)
239var executor = CreateExecutor(new TestLoggerFactory(sink, enabled: true)); 257var executor = CreateExecutor(new TestLoggerFactory(sink, enabled: true));
ModelBinding\Binders\BodyModelBinderProviderTest.cs (1)
135var loggerFactory = new TestLoggerFactory(sink, enabled: true);
ModelBinding\Binders\BodyModelBinderTests.cs (3)
594var loggerFactory = new TestLoggerFactory(sink, enabled: true); 623var loggerFactory = new TestLoggerFactory(sink, enabled: true); 719var loggerFactory = new TestLoggerFactory(sink, enabled: true);
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (2)
184var loggerFactory = new TestLoggerFactory(sink, enabled: true); 273var loggerFactory = new TestLoggerFactory(sink, enabled: true);
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (2)
133var loggerFactory = new TestLoggerFactory(sink, enabled: true); 200var loggerFactory = new TestLoggerFactory(sink, enabled: true);
ModelBinding\ParameterBinderTest.cs (1)
202var loggerFactory = new TestLoggerFactory(sink, enabled: true);
MvcCoreLoggerExtensionsTest.cs (12)
40var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 72var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 101var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 152var loggerFactory = new TestLoggerFactory(testSink, enabled: false); 198var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 244var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 290var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 336var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 382var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 401var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 432var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 460var loggerFactory = new TestLoggerFactory(testSink, enabled: true);
Routing\MvcRouteHandlerTests.cs (1)
23var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerOutputFormatterTest.cs (2)
636var formatter1 = new XmlDataContractSerializerOutputFormatter(new TestLoggerFactory(sink1, enabled: true)); 641new TestLoggerFactory(sink2, enabled: true));
XmlSerializerOutputFormatterTest.cs (2)
453var formatter1 = new XmlSerializerOutputFormatter(new TestLoggerFactory(sink1, enabled: true)); 458new TestLoggerFactory(sink2, enabled: true));
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Infrastructure\MvcTestFixture.cs (1)
31loggerFactory = new TestLoggerFactory(testSink, enabled: true);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (2)
239var executor = CreateExecutor(new TestLoggerFactory(sink, enabled: true)); 257var executor = CreateExecutor(new TestLoggerFactory(sink, enabled: true));
Microsoft.AspNetCore.Mvc.Razor.Test (2)
TagHelpers\TagHelperComponentTagHelperTest.cs (2)
222var loggerFactory = new TestLoggerFactory(sink, enabled: true); 255var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Infrastructure\PageActionInvokerTest.cs (1)
1394var loggerFactory = new TestLoggerFactory(testSink, enabled: true);
PageLoggerExtensionsTest.cs (6)
18var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 46var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 74var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 102var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 132var loggerFactory = new TestLoggerFactory(testSink, enabled: true); 165var loggerFactory = new TestLoggerFactory(testSink, enabled: true);
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
217testSink == null ? NullLoggerFactory.Instance : new TestLoggerFactory(testSink, true),
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMiddlewareTests.cs (1)
141var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.RequestDecompression.Tests (9)
DefaultRequestDecompressionProviderTests.cs (1)
165var loggerFactory = new TestLoggerFactory(sink, enabled: true);
RequestDecompressionMiddlewareTests.cs (8)
203var loggerFactory = new TestLoggerFactory(sink, enabled: true); 273var loggerFactory = new TestLoggerFactory(sink, enabled: true); 349var loggerFactory = new TestLoggerFactory(sink, enabled: true); 444var loggerFactory = new TestLoggerFactory(sink, enabled: true); 530var loggerFactory = new TestLoggerFactory(sink, enabled: true); 602new TestLoggerFactory(new TestSink(), enabled: true)); 633new TestLoggerFactory(new TestSink(), enabled: true)); 686var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
221testSink == null ? (ILoggerFactory)NullLoggerFactory.Instance : new TestLoggerFactory(testSink, true),
Microsoft.AspNetCore.ResponseCompression.Tests (4)
ResponseCompressionMiddlewareTest.cs (4)
440var loggerFactory = new TestLoggerFactory(sink, enabled: true); 501var loggerFactory = new TestLoggerFactory(sink, enabled: true); 564var loggerFactory = new TestLoggerFactory(sink, enabled: true); 1241var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.Routing.Tests (20)
DefaultLinkParserTest.cs (3)
26var loggerFactory = new TestLoggerFactory(sink, enabled: true); 48var loggerFactory = new TestLoggerFactory(sink, enabled: true); 72var loggerFactory = new TestLoggerFactory(sink, enabled: true);
EndpointRoutingMiddlewareFormOptionsTest.cs (5)
27var loggerFactory = new TestLoggerFactory(sink, enabled: true); 59var loggerFactory = new TestLoggerFactory(sink, enabled: true); 94var loggerFactory = new TestLoggerFactory(sink, enabled: true); 132var loggerFactory = new TestLoggerFactory(sink, enabled: true); 167var loggerFactory = new TestLoggerFactory(sink, enabled: true);
EndpointRoutingMiddlewareTest.cs (6)
66var loggerFactory = new TestLoggerFactory(sink, enabled: true); 235var loggerFactory = new TestLoggerFactory(sink, enabled: true); 273var loggerFactory = new TestLoggerFactory(sink, enabled: true); 305var loggerFactory = new TestLoggerFactory(sink, enabled: true); 331var loggerFactory = new TestLoggerFactory(sink, enabled: true); 361var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Matching\DfaMatcherTest.cs (4)
788var matcher = CreateDfaMatcher(endpointDataSource, loggerFactory: new TestLoggerFactory(sink, enabled: true)); 818var matcher = CreateDfaMatcher(endpointDataSource, loggerFactory: new TestLoggerFactory(sink, enabled: true)); 858var matcher = CreateDfaMatcher(endpointDataSource, loggerFactory: new TestLoggerFactory(sink, enabled: true)); 900var matcher = CreateDfaMatcher(endpointDataSource, loggerFactory: new TestLoggerFactory(sink, enabled: true));
RouterMiddlewareTest.cs (2)
74var loggerFactory = new TestLoggerFactory(sink, enabled: true); 105var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.AspNetCore.Session.Tests (11)
SessionTests.cs (11)
334var loggerFactory = new TestLoggerFactory(sink, enabled: true); 381var loggerFactory = new TestLoggerFactory(sink, enabled: true); 643var loggerFactory = new TestLoggerFactory(sink, enabled: true); 693var loggerFactory = new TestLoggerFactory(sink, enabled: true); 742var loggerFactory = new TestLoggerFactory(sink, enabled: true); 790var loggerFactory = new TestLoggerFactory(sink, enabled: true); 844var loggerFactory = new TestLoggerFactory(sink, enabled: true); 904var loggerFactory = new TestLoggerFactory(sink, enabled: true); 970var loggerFactory = new TestLoggerFactory(sink, enabled: true); 1034var loggerFactory = new TestLoggerFactory(sink, enabled: true); 1090var loggerFactory = new TestLoggerFactory(sink, enabled: true);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
DefaultHealthCheckServiceTest.cs (1)
337var loggerFactory = new TestLoggerFactory(sink, enabled: true);
HealthCheckPublisherHostedServiceTest.cs (1)
781serviceCollection.AddSingleton<ILoggerFactory>(new TestLoggerFactory(sink, enabled: true));
Microsoft.Extensions.Localization.Tests (1)
ResourceManagerStringLocalizerTest.cs (1)
247private ILogger Logger => new TestLoggerFactory(Sink, enabled: true).CreateLogger<ResourceManagerStringLocalizer>();