Method | Description | |
---|---|---|
AddHeader ( string header, string headerValue ) : IRequestStub | ||
AsContentType ( string contentType ) : IRequestStub | ||
AsXmlContent ( ) : IRequestStub | ||
CanVerifyConstraintsFor ( string url ) : bool | ||
GetBody ( ) : string | ||
LastRequest ( ) : HttpMock.ReceivedRequest | ||
NotFound ( ) : void | ||
OK ( ) : void | ||
RecordRequest ( HttpRequestHead request, string body ) : void | ||
RequestCount ( ) : int | ||
RequestHandler ( string path, IRequestProcessor requestProcessor ) : System | ||
Return ( Func |
||
Return ( string responseBody ) : IRequestStub | ||
ReturnFile ( string pathToFile ) : IRequestStub | ||
ReturnFileRange ( string pathToFile, int from, int to ) : IRequestStub | ||
ToString ( ) : string | ||
WithParams ( string>.IDictionary |
||
WithStatus ( HttpStatusCode httpStatusCode ) : void | ||
WithUrlConstraint ( bool>.Func |
public AddHeader ( string header, string headerValue ) : IRequestStub | ||
header | string | |
headerValue | string | |
return | IRequestStub |
public AsContentType ( string contentType ) : IRequestStub | ||
contentType | string | |
return | IRequestStub |
public CanVerifyConstraintsFor ( string url ) : bool | ||
url | string | |
return | bool |
public LastRequest ( ) : HttpMock.ReceivedRequest | ||
return | HttpMock.ReceivedRequest |
public RecordRequest ( HttpRequestHead request, string body ) : void | ||
request | HttpRequestHead | |
body | string | |
return | void |
public RequestHandler ( string path, IRequestProcessor requestProcessor ) : System | ||
path | string | |
requestProcessor | IRequestProcessor | |
return | System |
public Return ( Func |
||
responseBody | Func |
|
return | IRequestStub |
public Return ( string responseBody ) : IRequestStub | ||
responseBody | string | |
return | IRequestStub |
public ReturnFile ( string pathToFile ) : IRequestStub | ||
pathToFile | string | |
return | IRequestStub |
public ReturnFileRange ( string pathToFile, int from, int to ) : IRequestStub | ||
pathToFile | string | |
from | int | |
to | int | |
return | IRequestStub |
public WithParams ( string>.IDictionary |
||
nameValueCollection | string>.IDictionary | |
return | IRequestStub |
public WithStatus ( HttpStatusCode httpStatusCode ) : void | ||
httpStatusCode | HttpStatusCode | |
return | void |
public WithUrlConstraint ( bool>.Func |
||
constraint | bool>.Func | |
return | IRequestStub |