API Reference
Class
ScaleBuilder
Fluent builder for ScaleDefinition. Bands are matched in the order they are added.
Inheritance
- Object
- ScaleBuilder
Constructors
public ScaleBuilder(Boolean useCountIfCollection = true) #Creates a new scale builder.
Parameters
- useCountIfCollection System.Boolean = true
- When true, collections are evaluated by their Count.
Methods
public ScaleBuilder Above(Double minExclusive, TestimoStatus status, Nullable<Boolean> pass = null, Nullable<Importance> importance = null, Nullable<ActionType> action = null, String message = null) #Returns:
ScaleBuilderAdds a band for values greater than minExclusive (exclusive).
Parameters
- minExclusive System.Double
- status TestimoX.Definitions.TestimoStatus
- pass System.Nullable{System.Boolean} = null
- importance System.Nullable{TestimoX.Definitions.Importance} = null
- action System.Nullable{TestimoX.Definitions.ActionType} = null
- message System.String = null
public ScaleBuilder AboveParameter(String minKey, TestimoStatus status, Nullable<Boolean> pass = null, Nullable<Importance> importance = null, Nullable<ActionType> action = null, String message = null) #Returns:
ScaleBuilderAdds a parameterized band for values greater than Parameter(minKey).
Parameters
- minKey System.String
- status TestimoX.Definitions.TestimoStatus
- pass System.Nullable{System.Boolean} = null
- importance System.Nullable{TestimoX.Definitions.Importance} = null
- action System.Nullable{TestimoX.Definitions.ActionType} = null
- message System.String = null
public ScaleBuilder Between(Double minInclusive, Double maxExclusive, TestimoStatus status, Nullable<Boolean> pass = null, Nullable<Importance> importance = null, Nullable<ActionType> action = null, String message = null) #Returns:
ScaleBuilderAdds a band for minInclusive ≤ value < maxExclusive.
Parameters
- minInclusive System.Double
- maxExclusive System.Double
- status TestimoX.Definitions.TestimoStatus
- pass System.Nullable{System.Boolean} = null
- importance System.Nullable{TestimoX.Definitions.Importance} = null
- action System.Nullable{TestimoX.Definitions.ActionType} = null
- message System.String = null
public ScaleBuilder BetweenParameter(String minKey, String maxKey, TestimoStatus status, Nullable<Boolean> pass = null, Nullable<Importance> importance = null, Nullable<ActionType> action = null, String message = null) #Returns:
ScaleBuilderAdds a parameterized band for Parameter(minKey) ≤ value < Parameter(maxKey).
Parameters
- minKey System.String
- maxKey System.String
- status TestimoX.Definitions.TestimoStatus
- pass System.Nullable{System.Boolean} = null
- importance System.Nullable{TestimoX.Definitions.Importance} = null
- action System.Nullable{TestimoX.Definitions.ActionType} = null
- message System.String = null
public ScaleBuilder Passing(params TestimoStatus[] statuses) #Returns:
ScaleBuilderSets which statuses should be considered a passing outcome for this scale.
Parameters
- statuses TestimoX.Definitions.TestimoStatus[]
public ScaleBuilder UpTo(Double maxInclusive, TestimoStatus status, Nullable<Boolean> pass = null, Nullable<Importance> importance = null, Nullable<ActionType> action = null, String message = null) #Returns:
ScaleBuilderAdds a band from negative infinity up to and including maxInclusive.
Parameters
- maxInclusive System.Double
- status TestimoX.Definitions.TestimoStatus
- pass System.Nullable{System.Boolean} = null
- importance System.Nullable{TestimoX.Definitions.Importance} = null
- action System.Nullable{TestimoX.Definitions.ActionType} = null
- message System.String = null
public ScaleBuilder UpToParameter(String maxKey, TestimoStatus status, Nullable<Boolean> pass = null, Nullable<Importance> importance = null, Nullable<ActionType> action = null, String message = null) #Returns:
ScaleBuilderAdds a parameterized band from negative infinity up to and including the value of Parameter(maxKey).
Parameters
- maxKey System.String
- status TestimoX.Definitions.TestimoStatus
- pass System.Nullable{System.Boolean} = null
- importance System.Nullable{TestimoX.Definitions.Importance} = null
- action System.Nullable{TestimoX.Definitions.ActionType} = null
- message System.String = null