Interface IViewTestBuilder
Used for testing Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.ViewComponentResults
Assembly:MyTested.AspNetCore.Mvc.ViewComponents.dll
Syntax
public interface IViewTestBuilder : IBaseTestBuilderWithResponseModel, IBaseTestBuilderWithComponent, IBaseTestBuilder
Methods
| Improve this Doc View SourceWithViewEngine(IViewEngine)
Tests whether Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult has the same IViewEngine as the provided one.
Declaration
IAndViewTestBuilder WithViewEngine(IViewEngine viewEngine)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine | viewEngine | View engine of type IViewEngine. |
Returns
| Type | Description |
|---|---|
| MyTested.AspNetCore.Mvc.Builders.Contracts.ViewComponentResults.IAndViewTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ViewComponentResults.IAndViewTestBuilder. |
WithViewEngineOfType<TViewEngine>()
Tests whether Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult has the same IViewEngine type as the provided one.
Declaration
IAndViewTestBuilder WithViewEngineOfType<TViewEngine>()where TViewEngine : IViewEngine
Returns
| Type | Description |
|---|---|
| MyTested.AspNetCore.Mvc.Builders.Contracts.ViewComponentResults.IAndViewTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.ViewComponentResults.IAndViewTestBuilder. |
Type Parameters
| Name | Description |
|---|---|
| TViewEngine | View engine of type IViewEngine. |