C# Class MbDotNet.Models.Stubs.TcpStub

Inheritance: StubBase
Afficher le fichier Open project: mattherman/MbDotNet Class Usage Examples

Méthodes publiques

Méthode Description
On ( PredicateBase predicate ) : TcpStub

Adds a predicate to the stub

OnDataEquals ( string data ) : TcpStub

Adds a predicate to the stub that will match when the request data equals the specified data.

Returns ( ResponseBase response ) : TcpStub

Adds a response to the stub.

ReturnsData ( string data ) : TcpStub

Adds a response to the stub that will return the specified data.

Method Details

On() public méthode

Adds a predicate to the stub
public On ( PredicateBase predicate ) : TcpStub
predicate MbDotNet.Models.Predicates.PredicateBase The predicate object designating what the stub will match on
Résultat TcpStub

OnDataEquals() public méthode

Adds a predicate to the stub that will match when the request data equals the specified data.
public OnDataEquals ( string data ) : TcpStub
data string
Résultat TcpStub

Returns() public méthode

Adds a response to the stub.
public Returns ( ResponseBase response ) : TcpStub
response ResponseBase The response object designating what the stub will return
Résultat TcpStub

ReturnsData() public méthode

Adds a response to the stub that will return the specified data.
public ReturnsData ( string data ) : TcpStub
data string The data to be returned
Résultat TcpStub