public void RunPsTest(params string[] scripts) { var callingClassType = TestUtilities.GetCallingClass(2); var mockName = TestUtilities.GetCurrentMethodName(2); RunPsTestWorkflow( () => scripts, null, 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( scriptBuilder: () => scripts, initialize: null, cleanup: null, callingClassType: callingClassType, mockName: mockName); }
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 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(); } }