Méthode | Description | |
---|---|---|
ValidateContainingOfContentType ( dynamic result, Microsoft.Net.Http.Headers.MediaTypeHeaderValue expectedContentType, Action |
Validates whether action result ContentTypes contains the provided content type from action result containing such property.
|
|
ValidateContentType ( dynamic result, string expectedContentType, Action |
Validates whether ContentType is the same as the provided one from action result containing such property.
|
|
ValidateContentType ( string expectedContentType, string actualContentType, Action |
Validates whether two content types are the same.
|
|
ValidateContentTypes ( dynamic result, IEnumerable |
Validates whether action result ContentTypes contains the provided content types from action result containing such property.
|
Méthode | Description | |
---|---|---|
SortContentTypes ( IEnumerable |
||
TryGetContentTypesCollection ( dynamic actionResult ) : IEnumerable |
public static ValidateContainingOfContentType ( dynamic result, Microsoft.Net.Http.Headers.MediaTypeHeaderValue expectedContentType, Action |
||
result | dynamic | Component result with ContentTypes. |
expectedContentType | Microsoft.Net.Http.Headers.MediaTypeHeaderValue | Expected content type. |
failedValidationAction | Action |
Action to call in case of failed validation. |
Résultat | void |
public static ValidateContentType ( dynamic result, string expectedContentType, Action |
||
result | dynamic | Component result with ContentType. |
expectedContentType | string | Expected content type. |
failedValidationAction | Action |
Action to call in case of failed validation. |
Résultat | void |
public static ValidateContentType ( string expectedContentType, string actualContentType, Action |
||
expectedContentType | string | Expected content type. |
actualContentType | string | Actual content type. |
failedValidationAction | Action |
Action to call in case of failed validation. |
Résultat | void |
public static ValidateContentTypes ( dynamic result, IEnumerable |
||
result | dynamic | Component result with ContentTypes. |
contentTypes | IEnumerable |
Expected content types. |
failedValidationAction | Action |
Action to call in case of failed validation. |
Résultat | void |