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

Interface IActionResultTestBuilder<TActionResult>

Used for testing the action and its result.

Inherited Members
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Action<TComponent>)
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Func<TComponent, Boolean>)
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Actions
Assembly:MyTested.AspNetCore.Mvc.Controllers.dll
Syntax
public interface IActionResultTestBuilder<TActionResult> : IBaseTestBuilderWithActionResult<TActionResult>, IBaseTestBuilderWithInvokedAction, IBaseTestBuilderWithAction, IBaseTestBuilderWithComponent, IBaseTestBuilder
Type Parameters
Name Description
TActionResult Type of action result to be tested.

Methods

| Improve this Doc View Source

ShouldHave()

Used for testing the action's additional data - action attributes, HTTP response, view bag and more.

Declaration
IShouldHaveTestBuilder<TActionResult> ShouldHave()
Returns
Type Description
IShouldHaveTestBuilder<TActionResult>

Test builder of IShouldHaveTestBuilder<TActionResult> type.

| Improve this Doc View Source

ShouldReturn()

Used for testing returned action result.

Declaration
IShouldReturnTestBuilder<TActionResult> ShouldReturn()
Returns
Type Description
IShouldReturnTestBuilder<TActionResult>

Test builder of IShouldReturnTestBuilder<TActionResult>.

| Improve this Doc View Source

ShouldThrow()

Used for testing whether the action 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