Interface IViewComponentResultTestBuilder<TInvocationResult>
Used for building the view component result which will be tested.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Invocations
Assembly:MyTested.AspNetCore.Mvc.ViewComponents.dll
Syntax
public interface IViewComponentResultTestBuilder<TInvocationResult> : IBaseTestBuilderWithViewComponentResult<TInvocationResult>, IBaseTestBuilderWithViewComponent, IBaseTestBuilderWithComponent, IBaseTestBuilder
Type Parameters
Name | Description |
---|---|
TInvocationResult | Result from invoked view component in ASP.NET Core MVC. |
Methods
| Improve this Doc View SourceShouldHave()
Used for testing the view component's additional data - attributes, HTTP response, view bag and more.
Declaration
IViewComponentShouldHaveTestBuilder<TInvocationResult> ShouldHave()
Returns
Type | Description |
---|---|
IViewComponentShouldHaveTestBuilder<TInvocationResult> | Test builder of IViewComponentShouldHaveTestBuilder<TInvocationResult> type. |
ShouldReturn()
Used for testing returned view component result.
Declaration
IViewComponentShouldReturnTestBuilder<TInvocationResult> ShouldReturn()
Returns
Type | Description |
---|---|
IViewComponentShouldReturnTestBuilder<TInvocationResult> | Test builder of IViewComponentShouldReturnTestBuilder<TInvocationResult>. |
ShouldThrow()
Used for testing whether the view component throws exception.
Declaration
IShouldThrowTestBuilder ShouldThrow()
Returns
Type | Description |
---|---|
IShouldThrowTestBuilder | Test builder of IShouldThrowTestBuilder. |