Table of Contents

Class EnvironmentDescription

An object describing the environment that the test requires, in capability name-value pairs.

Inheritance
EnvironmentDescription
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class EnvironmentDescription : PropertiesDescription, IDescription, ICloneable

Constructors

EnvironmentDescription()

Creates an instance of EnvironmentDescription.

Declaration
public EnvironmentDescription()

Properties

Dictionary

For internal use only.

Declaration
public IDictionary<string, object> Dictionary { get; }
Property Value
Type Description
IDictionary<string, object>

Methods

FromDictionary(IDictionary<string, object>)

Creates a new instance of EnvironmentDescription and initializes it with the specified capabilities.

Declaration
public static EnvironmentDescription FromDictionary(IDictionary<string, object> capabilities)
Parameters
Type Name Description
IDictionary<string, object> capabilities

A IDictionary<TKey, TValue> of capabilities to initialize the EnvironmentDescription with.

Returns
Type Description
EnvironmentDescription

A new instance of EnvironmentDescription initialized with the specified capabilities.

Remarks

Get(string)

Returns the current value of an EnvironmentDescription capability.

Declaration
public object Get(string capability)
Parameters
Type Name Description
string capability

The capability whose value to return.

Returns
Type Description
object

The current value of an EnvironmentDescription capability.

Set(string, object)

Sets an EnvironmentDescription capability to the specified value.

Declaration
public EnvironmentDescription Set(string capability, object value)
Parameters
Type Name Description
string capability

The name of the capability to set a value for.

object value

The new value of the capability.

Returns
Type Description
EnvironmentDescription

The updated description instance (builder pattern).

Implements

IDescription
ICloneable