14 references to TestLogger
Microsoft.AspNetCore.Antiforgery.Test (4)
DefaultAntiforgeryTest.cs (4)
352.Returns(new TestLogger("test logger", testSink, enabled: true)); 1283.Returns(new TestLogger("test logger", testSink, enabled: true)); 1321.Returns(new TestLogger("test logger", testSink, enabled: true)); 1355.Returns(new TestLogger("test logger", testSink, enabled: true));
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostBuilderTests.cs (1)
1756public ILogger CreateLogger(string categoryName) => new TestLogger(categoryName, Sink, enabled: true);
Microsoft.AspNetCore.InternalTesting (2)
Logging\TestLoggerFactory.cs (1)
19return new TestLogger(name, _sink, _enabled);
Logging\TestLoggerProvider.cs (1)
17return new TestLogger(categoryName, _sink, enabled: true);
Microsoft.AspNetCore.OutputCaching.Tests (2)
TestUtils.cs (2)
226serviceProvider.Setup(x => x.GetService(typeof(ILogger<OutputCacheMiddleware>))).Returns(testSink == null ? NullLogger.Instance : new TestLogger("OutputCachingTests", testSink, true)); 246serviceProvider.Setup(x => x.GetService(typeof(ILogger<OutputCacheMiddleware>))).Returns(testSink == null ? NullLogger.Instance : new TestLogger("OutputCachingTests", testSink, true));
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
237return new ResponseCachingContext(new DefaultHttpContext(), new TestLogger("ResponseCachingTests", testSink, true))
Microsoft.AspNetCore.Routing.Tests (2)
ConstraintMatcherTest.cs (2)
20var logger = new TestLogger(_name, sink, enabled: true); 197var logger = new TestLogger(_name, sink, loggerEnabled);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.cs (1)
138var logger = new TestLogger(loggerName, testSink, true);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisHubLifetimeManagerTests.cs (1)
95var logger = new TestLogger("", testSink, true);