MY TESTED ASP.NET CORE MVC DOCS
Show / Hide Table of Contents

Interface IViewTestBuilder

Used for testing Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.

Inherited Members
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Action<TComponent>)
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Func<TComponent, Boolean>)
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 Source

WithViewEngine(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.

| Improve this Doc View Source

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.

Extension Methods

BaseTestBuilderWithResponseModelExtensions.WithNoModel()
BaseTestBuilderWithResponseModelExtensions.WithModelOfType(Type)
BaseTestBuilderWithResponseModelExtensions.WithModelOfType<TModel>()
BaseTestBuilderWithResponseModelExtensions.WithModel<TModel>(TModel)
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX