ClassDatePickerSelectedDateVerificationDescriptor
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[Sentence("DatePicker", "selected date is {Value}", false)]
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class DatePickerSelectedDateVerificationDescriptor : PropertyVerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IInspectWebSettings, IExtendedParamEditorInfo, IQuickTasks, ISentenceListPreview
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorXamlVerificationDescriptorPropertyVerificationDescriptorDatePickerSelectedDateVerificationDescriptor
Implements:
Inherited Members
Constructors
DatePickerSelectedDateVerificationDescriptor()
Declaration
public DatePickerSelectedDateVerificationDescriptor()
DatePickerSelectedDateVerificationDescriptor(IFrameworkElement, string, DateTime?)
Declaration
public DatePickerSelectedDateVerificationDescriptor(IFrameworkElement element, string comparison, DateTime? value)
Parameters
element
comparison
value
Properties
FriendlyDescription
Get a friendly description of this descriptor to show in the scenario explorer.
Declaration
public override string FriendlyDescription { get; }
Property Value
Overrides
SelectedValue
Declaration
[DataDriven]
[SentenceParam("date?", AutomationDescriptorType.Extraction, IsExtractedValue = true)]
public virtual DateTime SelectedValue { get; set; }
Property Value
Methods
DemangleValue(object)
When overriden in a derived class, converts the value stored in the verification descriptor to the value expected from the browser.
ExtractData(IAutomationHost, DescriptorValueStore)
Extract verification data from the live Targets.
Declaration
public override void ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
Parameters
targetHost
dataStore
Overrides
GeneratePreviewValuesForTarget(DescriptorValueStoreCollection)
Given a target element, generate an array of values for the descriptor implementing this interface.
Declaration
public void GeneratePreviewValuesForTarget(DescriptorValueStoreCollection valuesCollection)
Parameters
valuesCollection
DescriptorValueStoreCollection
Collection to add values to
Implements
OnParameterChanged(SentenceParam, Sentence)
Called when a parameter value has changed
Declaration
public override void OnParameterChanged(SentenceParam param, Sentence context)
Parameters
param
The parameter that changed
context
The context/sentence that this parameter is part of.
Overrides
OnSentenceLoad(Sentence)
Called when the sentence is first loaded. Allows for setting initial values for each sentence if needed
Declaration
public override void OnSentenceLoad(Sentence context)
Parameters
context
The sentence context.
Overrides
Verify(DescriptorValueStore)
Given a value store, verify against the constraints defined by this descriptor
Declaration
public override VerificationResult Verify(DescriptorValueStore dataStore)
Parameters
dataStore
The data store were values are captured
Returns
The verification result.
Overrides