public static NewTestPlatform ( string testPlatformName, string testPlatformId, string testPlatformDesctiption, string testPlatformOS, string testPlatformVersion, string testPlatformArchitecture, string testPlatformLanguage ) : bool | ||
testPlatformName | string | |
testPlatformId | string | |
testPlatformDesctiption | string | |
testPlatformOS | string | |
testPlatformVersion | string | |
testPlatformArchitecture | string | |
testPlatformLanguage | string | |
return | bool |
internal override void Execute() { var cmdlet = (NewPlatformCmdletBase)Cmdlet; bool result = TmxHelper.NewTestPlatform( cmdlet.Name, cmdlet.Id, cmdlet.Description, cmdlet.OperatingSystem, cmdlet.Version, cmdlet.Architecture, cmdlet.Language); if (result) { cmdlet.WriteObject(cmdlet, TestData.CurrentTestPlatform); } else { cmdlet.WriteError( cmdlet, "Couldn't create a test platform", "CreatingTestPlatform", ErrorCategory.InvalidArgument, true); } }