Méthode | Description | |
---|---|---|
CreateHttpImposter ( int port, string name = null ) : |
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 ) : |
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 ) : |
||
MountebankClient ( ) : System.Collections.Generic | ||
MountebankClient ( string mountebankUrl ) : System.Collections.Generic | ||
Submit ( ICollection |
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 ( |
Submits imposter if pending to be created in mountebank. Will throw a MountebankException if unable to create the imposter for any reason.
|
Méthode | Description | |
---|---|---|
MountebankClient ( IRequestProxy requestProxy ) : System.Collections.Generic |
public CreateHttpImposter ( int port, string name = null ) : |
||
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 |
Résultat |
public CreateTcpImposter ( int port, string name = null, TcpMode mode = TcpMode.Text ) : |
||
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 |
Résultat |
public DeleteImposter ( int port ) : void | ||
port | int | The port number of the imposter to be removed |
Résultat | void |
public GetImposter ( int port ) : |
||
port | int | |
Résultat |
public MountebankClient ( ) : System.Collections.Generic | ||
Résultat | System.Collections.Generic |
public MountebankClient ( string mountebankUrl ) : System.Collections.Generic | ||
mountebankUrl | string | |
Résultat | System.Collections.Generic |
public Submit ( ICollection |
||
imposters | ICollection |
|
Résultat | void |
public Submit ( |
||
imposter | ||
Résultat | void |