C# Класс MbDotNet.Models.Stubs.TcpStub

Наследование: StubBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

On() публичный Метод

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
Результат TcpStub

OnDataEquals() публичный Метод

Adds a predicate to the stub that will match when the request data equals the specified data.
public OnDataEquals ( string data ) : TcpStub
data string
Результат TcpStub

Returns() публичный Метод

Adds a response to the stub.
public Returns ( ResponseBase response ) : TcpStub
response ResponseBase The response object designating what the stub will return
Результат TcpStub

ReturnsData() публичный Метод

Adds a response to the stub that will return the specified data.
public ReturnsData ( string data ) : TcpStub
data string The data to be returned
Результат TcpStub