TestimoX

API Reference

Class

ParameterHelper

Namespace ADPlayground
Assembly ADPlayground
Modifiers static

Lightweight helpers to read typed options from loosely-typed parameter bags used by hosts (CLI/PowerShell/TestimoX). Keeps parsing logic out of services and rules.

Inheritance

  • Object
  • ParameterHelper

Methods

public static Boolean GetBool(IDictionary<String, Object> parameters, String key, Boolean defaultValue = false) #
Returns: Boolean

Reads a boolean parameter (accepts bool or string "true"/"false"). Returns defaultValue when key is missing or invalid.

Parameters

parameters System.Collections.Generic.IDictionary{System.String,System.Object} requiredposition: 0
key System.String requiredposition: 1
defaultValue System.Boolean = false optionalposition: 2
public static IEnumerable<String> GetStrings(IDictionary<String, Object> parameters, String key) #
Returns: IEnumerable<String>

Reads a string sequence parameter. Accepts string (CSV) or IEnumerable<string>.

Parameters

parameters System.Collections.Generic.IDictionary{System.String,System.Object} requiredposition: 0
key System.String requiredposition: 1