Interface IControllerTestBuilder
Used for testing controllers.
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Controllers
Assembly:MyTested.AspNetCore.Mvc.Controllers.dll
Syntax
public interface IControllerTestBuilder
Methods
| Improve this Doc View SourceAttributes(Action<IControllerAttributesTestBuilder>)
Tests whether the controller has specific attributes.
Declaration
IBaseTestBuilderWithController Attributes(Action<IControllerAttributesTestBuilder> attributesTestBuilder)
Parameters
Type | Name | Description |
---|---|---|
System.Action<IControllerAttributesTestBuilder> | attributesTestBuilder | Builder for testing specific attributes on the controller. |
Returns
Type | Description |
---|---|
IBaseTestBuilderWithController | Test builder of IBaseTestBuilderWithController type. |
Attributes(Nullable<Int32>)
Tests whether the controller has at least 1 attribute of any type.
Declaration
IBaseTestBuilderWithController Attributes(int ? withTotalNumberOf = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | withTotalNumberOf | Optional parameter specifying the exact total number of attributes on the tested controller. |
Returns
Type | Description |
---|---|
IBaseTestBuilderWithController | Test builder of IBaseTestBuilderWithController type. |
NoAttributes()
Tests whether the controller has no attributes of any type.
Declaration
IBaseTestBuilderWithController NoAttributes()
Returns
Type | Description |
---|---|
IBaseTestBuilderWithController | Test builder of IBaseTestBuilderWithController type. |