Class AppModelNodeBase<T, TDescription>
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
TTDescription
- Inheritance
-
AppModelNodeBase<T, TDescription>
- Derived
- Inherited Members
Constructors
AppModelNodeBase(AppModelBase)
ContainerClassBase empty constructor
protected AppModelNodeBase(AppModelBase applicationModel)
Parameters
applicationModelAppModelBase
AppModelNodeBase(ITestObject, AppModelBase)
ContainerClassBase constructor with parent TestObject parameter
protected AppModelNodeBase(ITestObject parent, AppModelBase applicationModel)
Parameters
parentITestObjectThe parent object
applicationModelAppModelBaseThe 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
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
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
descriptionIDescriptionThe 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
objectIdstringIdentifier 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
descriptionIDescriptionThe description.
SetDescription(IDescription)
Sets the description of the generated Application Model node.
public void SetDescription(IDescription description)
Parameters
descriptionIDescriptionThe IDescription of the node.