Метод | Описание | |
---|---|---|
ValidateHttpStatusCode ( HttpStatusCode expectedHttpStatusCode, int actualHttpStatusCode, Action |
Validates whether two HTTP status codes are the same.
|
|
ValidateHttpStatusCode ( dynamic result, HttpStatusCode expectedHttpStatusCode, Action |
Validates whether StatusCode is the same as the provided one from action result containing such property.
|
public static ValidateHttpStatusCode ( HttpStatusCode expectedHttpStatusCode, int actualHttpStatusCode, Action |
||
expectedHttpStatusCode | HttpStatusCode | Expected HTTP status code. |
actualHttpStatusCode | int | Actual HTTP status code. |
failedValidationAction | Action |
Action to call in case of failed validation. |
Результат | void |
public static ValidateHttpStatusCode ( dynamic result, HttpStatusCode expectedHttpStatusCode, Action |
||
result | dynamic | Component result with StatusCode. |
expectedHttpStatusCode | HttpStatusCode | Expected HTTP status code. |
failedValidationAction | Action |
Action to call in case of failed validation. |
Результат | void |