Class
DataBoundObject

Definition

Namespace:ArtOfTest.Common.Design.ProjectModel

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0")]
public abstract class DataBoundObject

Inheritance: objectDataBoundObject

Derived Classes: AutomationDescriptorFindExpressionElement

Constructors

DataBoundObject()

Declaration

cs-api-definition
protected DataBoundObject()

Fields

_data

The current data that this descriptor is running against (set at runtime only)

Declaration

cs-api-definition
[CLSCompliant(false)]
protected DataRow _data

Field Value

DataRow

Properties

Data

Gets or sets the data row used for expanding the data binding expressions

Declaration

cs-api-definition
[Browsable(false)]
public virtual DataRow Data { get; set; }

Property Value

DataRow

Methods

BindData(string)

If the descriptor supports data driven tests, then it can use this expand method to expand bindable properties or data before execution.

Declaration

cs-api-definition
protected abstract object BindData(string propertyName)

Parameters

propertyName

string

The property to expand on this descriptor.

Returns

object

The expanded expression (if it contains and data binding expression), else the property value unexpanded

BindData<T>(string)

If the descriptor supports data driven tests, then it can use this expand method to expand bindable properties or data before execution.

Declaration

cs-api-definition
protected virtual T BindData<T>(string propertyName)

Parameters

propertyName

string

The property to expand on this descriptor.

Returns

T

The expanded expression (if it contains and data binding expression), else the property value unexpanded

BindDataCode(string)

Helper method to use to help with code gen when a property supports data driven testing.

Declaration

cs-api-definition
protected virtual object BindDataCode(string propertyName)

Parameters

propertyName

string

The property name on this descriptor that supports data driven testing

Returns

object

An object use by the CodeGen methods to generate code that supports data driven testing.

BindDataCode(string, PropertyInfo)

Helper method to use to help with code gen when a property supports data driven testing.

Declaration

cs-api-definition
protected virtual object BindDataCode(string propertyName, PropertyInfo customPropertyToBind)

Parameters

propertyName

string

The property name on this descriptor that supports data driven testing

customPropertyToBind

PropertyInfo

A custom property to bind the code to at code gen time.

Returns

object

An object use by the CodeGen methods to generate code that supports data driven testing.

BindDataCode(string, string, Type)

Declaration

cs-api-definition
protected abstract object BindDataCode(string descriptorPropertyName, string controlPropertyName, Type controlPropertyType)

Parameters

descriptorPropertyName

string

controlPropertyName

string

controlPropertyType

Type

Returns

object

IsDataBound(string)

Gets whether a property of this descriptor is data bound or not.

Declaration

cs-api-definition
protected virtual bool IsDataBound(string propertyName)

Parameters

propertyName

string

The property to check.

Returns

bool

True/False whether the property is data bound.