Example #1
0
        public OrchestrationServiceTests(ITestOutputHelper outputHelper)
        {
            TestConstants.ValidateEnvironment();
            this.loggerFactory = new LoggerFactory();
            var loggerProvider = new XunitLoggerProvider(outputHelper);

            this.loggerFactory.AddProvider(loggerProvider);
        }
Example #2
0
 public TestFixture()
 {
     this.LoggerFactory  = new LoggerFactory();
     this.loggerProvider = new XunitLoggerProvider();
     this.LoggerFactory.AddProvider(this.loggerProvider);
     TestConstants.ValidateEnvironment();
     this.Host = TestConstants.GetTestOrchestrationHost(this.LoggerFactory);
     this.Host.StartAsync().Wait();
     this.traceListener = new TestTraceListener();
     Trace.Listeners.Add(this.traceListener);
 }
 public NonFixtureQueryTests(ITestOutputHelper outputHelper)
 {
     TestConstants.ValidateEnvironment();
     this.traceListener = new TestTraceListener()
     {
         Output = outputHelper
     };
     this.loggerFactory = new LoggerFactory();
     this.provider      = new XunitLoggerProvider(outputHelper);
     this.loggerFactory.AddProvider(this.provider);
     Trace.Listeners.Add(this.traceListener);
 }
Example #4
0
 public XunitLogger(XunitLoggerProvider provider, string categoryName)
 {
     this.provider     = provider;
     this.categoryName = categoryName;
 }