DataSetsBuilderAdd(String, DataSetBase) Method |
Adds an association between a string key from a
DataSpec in the
request and a
data set from the response.
Namespace: DegreeDays.Api.DataAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public DataSetsBuilder Add(
string key,
DataSetBase dataSet
)
Public Function Add (
key As String,
dataSet As DataSetBase
) As DataSetsBuilder
Parameters
- key String
- A string key from the XML response,
associated with a particular DataSpec from the
original XML request. If this builder was created with a
DataSpecs object (which it typically would be), the
key must match a key in that DataSpecs object. If
you're parsing a genuine XML response the keys will match
automatically, but, if you're setting up test objects, you can
create a DataSpecs with your own custom keys for full
control. Cannot be null, cannot be empty, cannot have more than 60
characters, and cannot contain characters outside of
[-_.a-zA-Z0-9].
- dataSet DataSetBase
- The non-null data set associated with key.
Return Value
DataSetsBuilderthis, for method chaining.
Exceptions See Also