public override void Initialize(MethodInfo methodInfo, object[] testMethodArguments, ITestOutputHelper testOutputHelper) { base.Initialize(methodInfo, testMethodArguments, testOutputHelper); TestApplicationErrorLogger = new TestApplicationErrorLogger(); LoggerFactory.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger)); }
public TestServiceContext() { var logger = new TestApplicationErrorLogger(); var kestrelTrace = new TestKestrelTrace(logger); Initialize(kestrelTrace.LoggerFactory, kestrelTrace); }
public TestServiceContext() { var logger = new TestApplicationErrorLogger(); var kestrelTrace = new TestKestrelTrace(logger); var loggerFactory = new LoggerFactory(new[] { new KestrelTestLoggerProvider(logger) }); Initialize(loggerFactory, kestrelTrace); }
public TestKestrelTrace(TestApplicationErrorLogger testLogger) : this(new LoggerFactory(new[] { new KestrelTestLoggerProvider(testLogger) })) { Logger = testLogger; }
public TestKestrelTrace(TestApplicationErrorLogger testLogger) : base(testLogger) { Logger = testLogger; }
public override void AdditionalSetup() { TestApplicationErrorLogger = new TestApplicationErrorLogger(); LoggerFactory.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger)); }