Class SimpleDataConnector
A simple data source that holds its data in memory. The data is loaded from and stored in the data source XML definition which allows to embed it into a test suite definition file.
public class SimpleDataConnector : DataConnector, IDisposable
- Inheritance
-
SimpleDataConnector
- Implements
- Inherited Members
Constructors
SimpleDataConnector(XmlNode)
Initializes a new instance of the SimpleDataConnector class.
public SimpleDataConnector(XmlNode node)
Parameters
nodeXmlNodeAn XML node containing the definition and data of the source.
SimpleDataConnector(string)
Initializes a new empty instance of the SimpleDataConnector class.
public SimpleDataConnector(string name)
Parameters
namestringThe name of the source.
SimpleDataConnector(string, ColumnCollection, RowCollection)
Initializes a new empty instance of the SimpleDataConnector class.
public SimpleDataConnector(string name, ColumnCollection columCollection, RowCollection rowCollection)
Parameters
namestringThe name of the source.
columCollectionColumnCollectionThe Collection of the columns of this source.
rowCollectionRowCollectionThe RowCollection containing the data of this source.
SimpleDataConnector(string, string[], string[][])
Initializes a new instance of the SimpleDataConnector class.
public SimpleDataConnector(string name, string[] columnNames, string[][] rows)
Parameters
namestringThe name of the source.
columnNamesstring[]The name of the columns of this source.
rowsstring[][]The rows containing the data of this source.
Properties
XmlIdentifier
Gets the unique identifier for serialization and deserialization purposes as well as factory creation.
public override string XmlIdentifier { get; }
Property Value
Methods
GetXMLNodeDerived(XmlNode)
Add DataSource specific information from derived classes to the node
protected override void GetXMLNodeDerived(XmlNode node)
Parameters
nodeXmlNodeThe node to which information should be added.
LoadColumnsImpl(out ColumnCollection)
Loads the data columns from the source.
protected override void LoadColumnsImpl(out ColumnCollection columns)
Parameters
columnsColumnCollectionThe loaded columns.
LoadDataImpl(out ColumnCollection, out RowCollection)
Gets the data from the source.
protected override void LoadDataImpl(out ColumnCollection columns, out RowCollection rows)
Parameters
columnsColumnCollectionThe loaded columns.
rowsRowCollectionThe loaded rows.
StoreDataImpl(ColumnCollection, RowCollection)
Stores the data to the data source.
protected override void StoreDataImpl(ColumnCollection columns, RowCollection rows)
Parameters
columnsColumnCollectionThe columns to store.
rowsRowCollectionThe rows to store.