Метод | Описание | |
---|---|---|
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 | |
Результат | IRequestStub |
public AsContentType ( string contentType ) : IRequestStub | ||
contentType | string | |
Результат | IRequestStub |
public CanVerifyConstraintsFor ( string url ) : bool | ||
url | string | |
Результат | bool |
public LastRequest ( ) : HttpMock.ReceivedRequest | ||
Результат | HttpMock.ReceivedRequest |
public RecordRequest ( HttpRequestHead request, string body ) : void | ||
request | HttpRequestHead | |
body | string | |
Результат | void |
public RequestHandler ( string path, IRequestProcessor requestProcessor ) : System | ||
path | string | |
requestProcessor | IRequestProcessor | |
Результат | System |
public Return ( Func |
||
responseBody | Func |
|
Результат | IRequestStub |
public Return ( string responseBody ) : IRequestStub | ||
responseBody | string | |
Результат | IRequestStub |
public ReturnFile ( string pathToFile ) : IRequestStub | ||
pathToFile | string | |
Результат | IRequestStub |
public ReturnFileRange ( string pathToFile, int from, int to ) : IRequestStub | ||
pathToFile | string | |
from | int | |
to | int | |
Результат | IRequestStub |
public WithParams ( string>.IDictionary |
||
nameValueCollection | string>.IDictionary | |
Результат | IRequestStub |
public WithStatus ( HttpStatusCode httpStatusCode ) : void | ||
httpStatusCode | HttpStatusCode | |
Результат | void |
public WithUrlConstraint ( bool>.Func |
||
constraint | bool>.Func | |
Результат | IRequestStub |