C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeReTesting.Utilities.MockResponse Class Reference

Static Public Member Functions

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.
 

Properties

RestResponse Response [get, set]
 

Detailed Description

Definition at line 8 of file MockResponse.cs.

Inheritance diagram for AnalyzeReTesting.Utilities.MockResponse:

Member Function Documentation

◆ 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_timeTime in seconds to wait before retrying
queue_positionThe request's queue position if available.

Definition at line 35 of file MockResponse.cs.

Property Documentation

◆ Response

RestResponse AnalyzeReTesting.Utilities.MockResponse.Response
getset

Definition at line 10 of file MockResponse.cs.


The documentation for this class was generated from the following file: