|
static MockResponse | Completed (HttpStatusCode httpStatus, ResponseStatus status=ResponseStatus.Completed) |
| Create a mock response with the specified error.
|
|
static MockResponse | Error (Exception requestException, ResponseStatus status=ResponseStatus.Error) |
| Create a mock response with the specified error.
|
|
static MockResponse | RetryAfter (double? retry_time, int? queue_position) |
| Throw a server-like retry-after response.
|
|
Definition at line 8 of file MockResponse.cs.
◆ Completed()
static MockResponse AnalyzeReTesting.Utilities.MockResponse.Completed |
( |
HttpStatusCode |
httpStatus, |
|
|
ResponseStatus |
status = ResponseStatus::Completed |
|
) |
| |
|
inlinestatic |
Create a mock response with the specified error.
Definition at line 23 of file MockResponse.cs.
◆ Error()
static MockResponse AnalyzeReTesting.Utilities.MockResponse.Error |
( |
Exception |
requestException, |
|
|
ResponseStatus |
status = ResponseStatus::Error |
|
) |
| |
|
inlinestatic |
Create a mock response with the specified error.
Definition at line 13 of file MockResponse.cs.
◆ RetryAfter()
static MockResponse AnalyzeReTesting.Utilities.MockResponse.RetryAfter |
( |
double? |
retry_time, |
|
|
int? |
queue_position |
|
) |
| |
|
inlinestatic |
Throw a server-like retry-after response.
- Parameters
-
retry_time | Time in seconds to wait before retrying |
queue_position | The request's queue position if available. |
Definition at line 35 of file MockResponse.cs.
◆ Response
RestResponse AnalyzeReTesting.Utilities.MockResponse.Response |
|
getset |
The documentation for this class was generated from the following file: