Class ActionAttributesTestBuilderViewFeaturesExtensions
Contains view features extension methods for IActionAttributesTestBuilder.
Inheritance
System.Object
ActionAttributesTestBuilderViewFeaturesExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.ViewFeatures.dll
Syntax
public static class ActionAttributesTestBuilderViewFeaturesExtensions
Methods
| Improve this Doc View SourceValidatingAntiForgeryToken(IActionAttributesTestBuilder)
Tests whether the action attributes contain Microsoft.AspNetCore.Mvc.ValidateAntiForgeryTokenAttribute.
Declaration
public static IAndActionAttributesTestBuilder ValidatingAntiForgeryToken(this IActionAttributesTestBuilder actionAttributesTestBuilder)
Parameters
Type | Name | Description |
---|---|---|
IActionAttributesTestBuilder | actionAttributesTestBuilder | Instance of IActionAttributesTestBuilder type. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IAndActionAttributesTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IAndActionAttributesTestBuilder. |