public static DeleteComputeNodeUser ( BatchController controller, BatchAccountContext context, string poolId, string computeNodeId, string computeNodeUserName ) : void | ||
controller | BatchController | |
context | BatchAccountContext | |
poolId | string | |
computeNodeId | string | |
computeNodeUserName | string | |
return | void |
public void TestUpdateComputeNodeUser() { BatchController controller = BatchController.NewInstance; BatchAccountContext context = null; string computeNodeId = null; string userName = "******"; controller.RunPsTestWorkflow( () => { return(new string[] { string.Format("Test-UpdateComputeNodeUser '{0}' '{1}' '{2}'", poolId, computeNodeId, userName) }); }, () => { context = new ScenarioTestContext(); computeNodeId = ScenarioTestHelpers.GetComputeNodeId(controller, context, poolId); ScenarioTestHelpers.CreateComputeNodeUser(controller, context, poolId, computeNodeId, userName); }, () => { ScenarioTestHelpers.DeleteComputeNodeUser(controller, context, poolId, computeNodeId, userName); }, TestUtilities.GetCallingClass(), TestUtilities.GetCurrentMethodName()); }