1 implementation of ITestSink
Microsoft.AspNetCore.InternalTesting (1)
Logging\TestSink.cs (1)
9public class TestSink : ITestSink
20 references to ITestSink
InMemory.FunctionalTests (1)
ResponseTests.cs (1)
4677ITestSink testSink,
Microsoft.AspNetCore.Hosting.Tests (7)
WebHostBuilderTests.cs (7)
1076var sink = host.Services.GetRequiredService<ITestSink>(); 1229var sink = host.Services.GetRequiredService<ITestSink>(); 1238ITestSink testSink = null; 1244testSink = app.ApplicationServices.GetRequiredService<ITestSink>(); 1693.ConfigureServices(services => services.AddSingleton<ITestSink>(loggerProvider.Sink))
Microsoft.AspNetCore.InternalTesting (8)
LoggedTest\LoggedTest.cs (1)
15public ITestSink TestSink { get; set; }
Logging\TestLogger.cs (3)
11private readonly ITestSink _sink; 15public TestLogger(string name, ITestSink sink, bool enabled) 20public TestLogger(string name, ITestSink sink, Func<LogLevel, bool> filter)
Logging\TestLoggerFactory.cs (2)
8private readonly ITestSink _sink; 11public TestLoggerFactory(ITestSink sink, bool enabled)
Logging\TestLoggerProvider.cs (2)
8private readonly ITestSink _sink; 10public TestLoggerProvider(ITestSink sink)
Microsoft.AspNetCore.OutputCaching.Tests (2)
TestUtils.cs (2)
221internal static OutputCacheContext CreateTestContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null, OutputCacheOptions? options = null, ITestSink? testSink = null) 241internal static OutputCacheContext CreateUninitializedContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null, OutputCacheOptions? options = null, ITestSink? testSink = null)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
235internal static ResponseCachingContext CreateTestContext(ITestSink testSink)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
CertificatePathWatcherTests.cs (1)
472private static IDictionary<string, object> GetLogMessageProperties(ITestSink testSink, string eventName)