Inheritance: Hyak.Common.ICloudTracingInterceptor
        public ServerDisasterRecoveryConfigurationTests(ITestOutputHelper output)
        {
            var logger = new XunitTracingInterceptor(output);
            XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));

            helper.TracingInterceptor = logger;
        }
コード例 #2
0
        public void RunPsTest(XunitTracingInterceptor logger, params string[] scripts)
        {
            var callingClassType = TestUtilities.GetCallingClass(2);
            var mockName = TestUtilities.GetCurrentMethodName(2);
            this.helper.TracingInterceptor = logger;

            this.RunPsTestWorkflow(
                () => scripts,
                // no custom initializer
                null,
                // no custom cleanup 
                null,
                callingClassType,
                mockName);
        }
コード例 #3
0
        public void RunPsTest(XunitTracingInterceptor logger, params string[] scripts)
        {
            var callingClassType = TestUtilities.GetCallingClass(2);
            var mockName = TestUtilities.GetCurrentMethodName(2);

            logger.Information(string.Format("Test method entered: {0}.{1}", callingClassType, mockName));
            helper.TracingInterceptor = logger;
            RunPsTestWorkflow(
                () => scripts,
                // no custom initializer
                null,
                // no custom cleanup 
                null,
                callingClassType,
                mockName);
            logger.Information(string.Format("Test method finished: {0}.{1}", callingClassType, mockName));
        }
コード例 #4
0
 public WebServiceTests(ITestOutputHelper output)
 {
     this.interceptor = new XunitTracingInterceptor(output);
     XunitTracingInterceptor.AddToContext(this.interceptor);
 }
コード例 #5
0
 public void RunPsTest(XunitTracingInterceptor traceInterceptor, params string[] scripts)
 {
     helper.TracingInterceptor = traceInterceptor;
     RunPsTest(scripts);
 }
コード例 #6
0
 public CommitmentPlanTests(ITestOutputHelper output)
 {
     this.interceptor = new XunitTracingInterceptor(output);
     XunitTracingInterceptor.AddToContext(this.interceptor);
 }
コード例 #7
0
 public void RunPsTestWorkflow(
     XunitTracingInterceptor interceptor,
     Func<string[]> scriptBuilder,
     Action<LegacyTest.CSMTestEnvironmentFactory> initialize,
     Action cleanup,
     string callingClassType,
     string mockName)
 {
     helper.TracingInterceptor = interceptor;
     this.RunPsTestWorkflow(scriptBuilder, initialize, cleanup, callingClassType, mockName);
 }
コード例 #8
0
 public ActiveDirectoryTests(ITestOutputHelper output)
 {
     interceptor = new XunitTracingInterceptor(output);
     XunitTracingInterceptor.AddToContext(interceptor);
 }
コード例 #9
0
 public SubscriptionCmdletTests(ITestOutputHelper output)
 {
     xunitLogger = new XunitTracingInterceptor(output);
 }
コード例 #10
0
 public static void RemoveFromContext(XunitTracingInterceptor interceptor)
 {
     try
     {
         TracingAdapter.RemoveTracingInterceptor(interceptor);
     }
     catch
     {
         // Ignore
     }
 }
コード例 #11
0
 public static void AddToContext(XunitTracingInterceptor interceptor)
 {
     RemoveFromContext(interceptor);
     TracingAdapter.AddTracingInterceptor(interceptor);
 }
コード例 #12
0
 public CognitiveServicesAccountTests(ITestOutputHelper output)
 {
     this.traceInterceptor = new XunitTracingInterceptor(output);
     XunitTracingInterceptor.AddToContext(this.traceInterceptor);
 }