Tooling/Types/Mocked/ActionTypes/PublishTestResults.ps1
@{ Clean = { Param([ConfigAutomationContext] $context,[UIAction] $action) return $true }; Action = { Param([ConfigAutomationContext] $context,[UIAction] $action) $extracted = $action.Parameters().Extract(@("TestResultFormat", "SearchResultsFiles", "SearchFolder")) return $true }; CanExecute = { Param([ConfigAutomationContext] $context,[UIAction] $action) return $true }; Validate = { Param([ConfigAutomationContext] $context,[UIAction] $action) if(-not $action.Parameters().Validate(@("TestResultFormat", "SearchResultsFiles", "SearchFolder"))){ return $false } return $true }; } |