public void RunPsTest(params string[] scripts) { var callingClassType = TestUtilities.GetCallingClass(2); var mockName = TestUtilities.GetCurrentMethodName(2); RunPsTestWorkflow( () => scripts, // no custom initializer null, // no custom cleanup null, callingClassType, mockName); }
public void RunPowerShellTest(ServiceManagemenet.Common.Models.XunitTracingInterceptor logger, params string[] scripts) { var callingClassType = TestUtilities.GetCallingClass(2); var mockName = TestUtilities.GetCurrentMethodName(2); _helper.TracingInterceptor = logger; RunPsTestWorkflow( () => scripts, // no custom initializer null, // no custom cleanup null, callingClassType, mockName); }
public void RunPsTest(XunitTracingInterceptor traceInterceptor, params string[] scripts) { helper.TracingInterceptor = traceInterceptor; var callingClassType = TestUtilities.GetCallingClass(2); var mockName = TestUtilities.GetCurrentMethodName(2); RunPsTestWorkflow( () => scripts, // no custom initializer null, // no custom cleanup null, callingClassType, mockName); }
public void RunPsTest(params string[] scripts) { TestExecutionHelpers.SetUpSessionAndProfile(); var callingClassType = TestUtilities.GetCallingClass(2); var mockName = TestUtilities.GetCurrentMethodName(2); RunPsTestWorkflow( () => scripts, // no custom initializer null, // no custom cleanup null, callingClassType, mockName); }
public TestsFixture() { // Initialize has bug which causes null reference exception HttpMockServer.FileSystemUtilsObject = new FileSystemUtils(); TestUtilities.StartTest(); using (MockContext context = MockContext.Start(TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName(2))) { var resourceManagementClient = ApiManagementHelper.GetResourceManagementClient(); resourceManagementClient.TryRegisterSubscriptionForResource(); } }