C# Class MbDotNet.Models.Stubs.TcpStub

Inheritance: StubBase
Show file Open project: mattherman/MbDotNet Class Usage Examples

Public Methods

Method 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 method

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
return TcpStub

OnDataEquals() public method

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

Returns() public method

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

ReturnsData() public method

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