C# 클래스 MbDotNet.MountebankClient

상속: IClient
파일 보기 프로젝트 열기: mattherman/MbDotNet

공개 메소드들

메소드 설명
CreateHttpImposter ( int port, string name = null ) : HttpImposter

Creates a new imposter on the specified port with the HTTP protocol. The Submit method must be called on the client in order to submit the imposter to mountebank.

CreateTcpImposter ( int port, string name = null, TcpMode mode = TcpMode.Text ) : TcpImposter

Creates a new imposter on the specified port with the TCP protocol. The Submit method must be called on the client in order to submit the imposter to mountebank.

DeleteAllImposters ( ) : void

Deletes all imposters from mountebank. Will also remove the imposter from the collection of imposters that the client maintains.

DeleteImposter ( int port ) : void

Deletes a single imposter from mountebank. Will also remove the imposter from the collection of imposters that the client maintains.

GetImposter ( int port ) : RetrievedImposter
MountebankClient ( ) : System.Collections.Generic
MountebankClient ( string mountebankUrl ) : System.Collections.Generic
Submit ( ICollection imposters ) : void

Submits all pending imposters from the supplied collection to be created in mountebank. Will throw a MountebankException if unable to create the imposter for any reason.

Submit ( Imposter imposter ) : void

Submits imposter if pending to be created in mountebank. Will throw a MountebankException if unable to create the imposter for any reason.

비공개 메소드들

메소드 설명
MountebankClient ( IRequestProxy requestProxy ) : System.Collections.Generic

메소드 상세

CreateHttpImposter() 공개 메소드

Creates a new imposter on the specified port with the HTTP protocol. The Submit method must be called on the client in order to submit the imposter to mountebank.
public CreateHttpImposter ( int port, string name = null ) : HttpImposter
port int The port the imposter will be set up to receive requests on
name string The name the imposter will recieve, useful for debugging/logging purposes
리턴 MbDotNet.Models.Imposters.HttpImposter

CreateTcpImposter() 공개 메소드

Creates a new imposter on the specified port with the TCP protocol. The Submit method must be called on the client in order to submit the imposter to mountebank.
public CreateTcpImposter ( int port, string name = null, TcpMode mode = TcpMode.Text ) : TcpImposter
port int The port the imposter will be set up to receive requests on
name string The name the imposter will recieve, useful for debugging/logging purposes
mode TcpMode The mode of the imposter, text or binary. This defines the encoding for request/response data
리턴 MbDotNet.Models.Imposters.TcpImposter

DeleteAllImposters() 공개 메소드

Deletes all imposters from mountebank. Will also remove the imposter from the collection of imposters that the client maintains.
public DeleteAllImposters ( ) : void
리턴 void

DeleteImposter() 공개 메소드

Deletes a single imposter from mountebank. Will also remove the imposter from the collection of imposters that the client maintains.
public DeleteImposter ( int port ) : void
port int The port number of the imposter to be removed
리턴 void

GetImposter() 공개 메소드

public GetImposter ( int port ) : RetrievedImposter
port int
리턴 MbDotNet.Models.Imposters.RetrievedImposter

MountebankClient() 공개 메소드

public MountebankClient ( ) : System.Collections.Generic
리턴 System.Collections.Generic

MountebankClient() 공개 메소드

public MountebankClient ( string mountebankUrl ) : System.Collections.Generic
mountebankUrl string
리턴 System.Collections.Generic

Submit() 공개 메소드

Submits all pending imposters from the supplied collection to be created in mountebank. Will throw a MountebankException if unable to create the imposter for any reason.
public Submit ( ICollection imposters ) : void
imposters ICollection
리턴 void

Submit() 공개 메소드

Submits imposter if pending to be created in mountebank. Will throw a MountebankException if unable to create the imposter for any reason.
public Submit ( Imposter imposter ) : void
imposter MbDotNet.Models.Imposters.Imposter
리턴 void