C# 클래스 Amido.Testing.WebApi.Request.TestRequests

Class which stores a list of request actions and assertions.
파일 보기 프로젝트 열기: amido/Amido.Testing 1 사용 예제들

공개 메소드들

메소드 설명
Add ( Func webApiRequest ) : TestRequests

Adds a new WebTestRequest.

Retry ( RetryTestType retryTestType, Func value, int maxRetries, int interval, Func webApiRequest ) : TestRequests

Adds a retry policy to the WebTestRequest.

Retry ( RetryTestType retryTestType, int value, int maxRetries, int interval, Func webApiRequest ) : TestRequests

Adds a retry policy to the WebTestRequest.

Retry ( RetryTestType retryTestType, string value, int maxRetries, int interval, Func webApiRequest ) : TestRequests

Adds a retry policy to the WebTestRequest.

TestRequests ( ) : System

Constructs a new TestRequests.

Wait ( int milliseconds, Func webApiRequest ) : TestRequests

Forces the main thread to wait before running the WebTestRequest.

메소드 상세

Add() 공개 메소드

Adds a new WebTestRequest.
public Add ( Func webApiRequest ) : TestRequests
webApiRequest Func The action.
리턴 TestRequests

Retry() 공개 메소드

Adds a retry policy to the WebTestRequest.
public Retry ( RetryTestType retryTestType, Func value, int maxRetries, int interval, Func webApiRequest ) : TestRequests
retryTestType RetryTestType The .
value Func The delegate value to be used in the retry test.
maxRetries int The max number of retries.
interval int The interval in milliseconds between each retry.
webApiRequest Func The action.
리턴 TestRequests

Retry() 공개 메소드

Adds a retry policy to the WebTestRequest.
public Retry ( RetryTestType retryTestType, int value, int maxRetries, int interval, Func webApiRequest ) : TestRequests
retryTestType RetryTestType The .
value int The value to be used in the retry test.
maxRetries int The max number of retries.
interval int The interval in milliseconds between each retry.
webApiRequest Func The action.
리턴 TestRequests

Retry() 공개 메소드

Adds a retry policy to the WebTestRequest.
public Retry ( RetryTestType retryTestType, string value, int maxRetries, int interval, Func webApiRequest ) : TestRequests
retryTestType RetryTestType The .
value string The value to be used in the retry test.
maxRetries int The max number of retries.
interval int The interval in milliseconds between each retry.
webApiRequest Func The action.
리턴 TestRequests

TestRequests() 공개 메소드

Constructs a new TestRequests.
public TestRequests ( ) : System
리턴 System

Wait() 공개 메소드

Forces the main thread to wait before running the WebTestRequest.
public Wait ( int milliseconds, Func webApiRequest ) : TestRequests
milliseconds int The number of milliseconds to wait before proceeding with the .
webApiRequest Func The action.
리턴 TestRequests