Interface IViewComponentAttributesTestBuilder
Used for testing view component attributes.
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes
Assembly:MyTested.AspNetCore.Mvc.ViewComponents.dll
Syntax
public interface IViewComponentAttributesTestBuilder : IBaseAttributesTestBuilder<IAndViewComponentAttributesTestBuilder>
Methods
| Improve this Doc View SourceChangingViewComponentNameTo(String)
Tests whether the view component attributes contain Microsoft.AspNetCore.Mvc.ViewComponentAttribute.
Declaration
IAndViewComponentAttributesTestBuilder ChangingViewComponentNameTo(string viewComponentName)
Parameters
Type | Name | Description |
---|---|---|
System.String | viewComponentName | Expected overridden name of the view component. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IAndViewComponentAttributesTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IAndViewComponentAttributesTestBuilder. |
IndicatingViewComponentExplicitly()
Tests whether the controller attributes contain Microsoft.AspNetCore.Mvc.ViewComponentAttribute.
Declaration
IAndViewComponentAttributesTestBuilder IndicatingViewComponentExplicitly()
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IAndViewComponentAttributesTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IAndViewComponentAttributesTestBuilder. |