Class AppModelNodeBase<T, TDescription>
Base class for all container sub-classes generated under the Application Model class.
Inherited Members
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public abstract class AppModelNodeBase<T, TDescription> where T : class, ITestObject where TDescription : class, IDescription
Type Parameters
| Name | Description |
|---|---|
| T | |
| TDescription |
Constructors
AppModelNodeBase(AppModelBase)
ContainerClassBase empty constructor
Declaration
protected AppModelNodeBase(AppModelBase applicationModel)
Parameters
| Type | Name | Description |
|---|---|---|
| AppModelBase | applicationModel |
AppModelNodeBase(ITestObject, AppModelBase)
ContainerClassBase constructor with parent TestObject parameter
Declaration
protected AppModelNodeBase(ITestObject parent, AppModelBase applicationModel)
Parameters
| Type | Name | Description |
|---|---|---|
| ITestObject | parent | The parent object |
| AppModelBase | applicationModel | The application model object |
Fields
_concrete
backing field of Concrete property
Declaration
protected T _concrete
Field Value
| Type | Description |
|---|---|
| T |
Properties
ApplicationModel
The Application Model instance
Declaration
protected AppModelBase ApplicationModel { get; set; }
Property Value
| Type | Description |
|---|---|
| AppModelBase |
Concrete
Concrete generic property.
Declaration
protected T Concrete { get; }
Property Value
| Type | Description |
|---|---|
| T |
Description
The description of the generated Application Model node.
Declaration
public TDescription Description { get; }
Property Value
| Type | Description |
|---|---|
| TDescription |
Parent
The parent ITestObject object.
Declaration
public ITestObject Parent { get; }
Property Value
| Type | Description |
|---|---|
| ITestObject |
Methods
CreateDescription()
Placeholder method for CreateDescription.
Declaration
protected abstract TDescription CreateDescription()
Returns
| Type | Description |
|---|---|
| TDescription |
DescribeConcrete(IDescription)
Describes the underlying concrete test object.
Declaration
protected virtual T DescribeConcrete(IDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| IDescription | description | The IDescription which by the undelying test object is described. |
Returns
| Type | Description |
|---|---|
| T | The underlying concrete test object |
GetRelatedObject(string)
Returns the related test object.
Declaration
protected ITestObject GetRelatedObject(string objectId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | objectId | Identifier for this object in the containing Application Model |
Returns
| Type | Description |
|---|---|
| ITestObject | The related test object |
SetConcrete(IDescription)
Sets the underlying concrete test object.
Declaration
protected void SetConcrete(IDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| IDescription | description | The description. |
SetDescription(IDescription)
Sets the description of the generated Application Model node.
Declaration
public void SetDescription(IDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| IDescription | description | The IDescription of the node. |