public override void Initialize(MethodInfo methodInfo, object[] testMethodArguments, ITestOutputHelper testOutputHelper)
        {
            base.Initialize(methodInfo, testMethodArguments, testOutputHelper);

            TestApplicationErrorLogger = new TestApplicationErrorLogger();
            LoggerFactory.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
        }
Exemplo n.º 2
0
        public TestServiceContext()
        {
            var logger       = new TestApplicationErrorLogger();
            var kestrelTrace = new TestKestrelTrace(logger);

            Initialize(kestrelTrace.LoggerFactory, kestrelTrace);
        }
Exemplo n.º 3
0
        public TestServiceContext()
        {
            var logger        = new TestApplicationErrorLogger();
            var kestrelTrace  = new TestKestrelTrace(logger);
            var loggerFactory = new LoggerFactory(new[] { new KestrelTestLoggerProvider(logger) });

            Initialize(loggerFactory, kestrelTrace);
        }
Exemplo n.º 4
0
 public TestKestrelTrace(TestApplicationErrorLogger testLogger) : this(new LoggerFactory(new[] { new KestrelTestLoggerProvider(testLogger) }))
 {
     Logger = testLogger;
 }
Exemplo n.º 5
0
 public TestKestrelTrace(TestApplicationErrorLogger testLogger) : base(testLogger)
 {
     Logger = testLogger;
 }
Exemplo n.º 6
0
 public override void AdditionalSetup()
 {
     TestApplicationErrorLogger = new TestApplicationErrorLogger();
     LoggerFactory.AddProvider(new KestrelTestLoggerProvider(TestApplicationErrorLogger));
 }