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

Interface IViewComponentResultTestBuilder<TInvocationResult>

Used for building the view component result which will be tested.

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

ShouldHave()

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.

| Improve this Doc View Source

ShouldReturn()

Used for testing returned view component result.

Declaration
IViewComponentShouldReturnTestBuilder<TInvocationResult> ShouldReturn()
Returns
Type Description
IViewComponentShouldReturnTestBuilder<TInvocationResult>

Test builder of IViewComponentShouldReturnTestBuilder<TInvocationResult>.

| Improve this Doc View Source

ShouldThrow()

Used for testing whether the view component throws exception.

Declaration
IShouldThrowTestBuilder ShouldThrow()
Returns
Type Description
IShouldThrowTestBuilder

Test builder of IShouldThrowTestBuilder.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX