Table of Contents

Class AppModelNodeBase<T, TDescription>

Namespace
HP.LFT.SDK
Assembly
HP.LFT.SDK.dll

Base class for all container sub-classes generated under the Application Model class.

public abstract class AppModelNodeBase<T, TDescription> where T : class, ITestObject where TDescription : class, IDescription

Type Parameters

T
TDescription
Inheritance
AppModelNodeBase<T, TDescription>
Derived
Inherited Members

Constructors

AppModelNodeBase(AppModelBase)

ContainerClassBase empty constructor

protected AppModelNodeBase(AppModelBase applicationModel)

Parameters

applicationModel AppModelBase

AppModelNodeBase(ITestObject, AppModelBase)

ContainerClassBase constructor with parent TestObject parameter

protected AppModelNodeBase(ITestObject parent, AppModelBase applicationModel)

Parameters

parent ITestObject

The parent object

applicationModel AppModelBase

The application model object

Fields

_concrete

backing field of Concrete property

protected T _concrete

Field Value

T

Properties

ApplicationModel

The Application Model instance

protected AppModelBase ApplicationModel { get; set; }

Property Value

AppModelBase

Concrete

Concrete generic property.

protected T Concrete { get; }

Property Value

T

Description

The description of the generated Application Model node.

public TDescription Description { get; }

Property Value

TDescription

Parent

The parent ITestObject object.

public ITestObject Parent { get; }

Property Value

ITestObject

Methods

CreateDescription()

Placeholder method for CreateDescription.

protected abstract TDescription CreateDescription()

Returns

TDescription

DescribeConcrete(IDescription)

Describes the underlying concrete test object.

protected virtual T DescribeConcrete(IDescription description)

Parameters

description IDescription

The IDescription which by the undelying test object is described.

Returns

T

The underlying concrete test object

GetRelatedObject(string)

Returns the related test object.

protected ITestObject GetRelatedObject(string objectId)

Parameters

objectId string

Identifier for this object in the containing Application Model

Returns

ITestObject

The related test object

SetConcrete(IDescription)

Sets the underlying concrete test object.

protected void SetConcrete(IDescription description)

Parameters

description IDescription

The description.

SetDescription(IDescription)

Sets the description of the generated Application Model node.

public void SetDescription(IDescription description)

Parameters

description IDescription

The IDescription of the node.