C# 클래스 MbDotNet.Models.Stubs.TcpStub

상속: StubBase
파일 보기 프로젝트 열기: mattherman/MbDotNet 1 사용 예제들

공개 메소드들

메소드 설명
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