Click or drag to resize

DataSetsBuilder Class

A builder class for creating immutable DataSets objects e.g. for testing purposes.
Inheritance Hierarchy
SystemObject
  DegreeDays.Api.DataDataSetsBuilder

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public sealed class Builder

The DataSetsBuilder type exposes the following members.

Constructors
 NameDescription
Public methodDataSetsBuilder Note that this constructor would only usually be called by an IResponseParser, and that's not an interface that you are likely to need to deal with unless you are replacing parts of the framework.
Top
Methods
 NameDescription
Public methodAdd(DataSpec, DataSetBase) Adds an association between a DataSpec from the request and a data set from the response, without dealing directly with the string keys that are used in the XML.
Public methodAdd(String, DataSetBase) Adds an association between a string key from a DataSpec in the request and a data set from the response.
Public methodAddFailure(DataSpec, Failure) Adds an association between a DataSpec from the request and a Failure from the response, without dealing directly with the string keys that are used in the XML.
Public methodAddFailure(String, Failure) Adds an association between a string key from a DataSpec in the request and a Failure from the response.
Public methodBuild Returns a new DataSets object created according to the specification held by this builder.
Top
Thread Safety
Instances of this builder class are designed for single-threaded use only. It's fine to create and use instances in multiple concurrent threads, but, in the absence of external synchronization, the use of each individual builder instance should be restricted to one thread only.
See Also