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

Class LocalRedirectTestBuilderExtensions

Contains extension methods for ILocalRedirectTestBuilder.

Inheritance
System.Object
LocalRedirectTestBuilderExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Helpers.dll
Syntax
public static class LocalRedirectTestBuilderExtensions

Methods

| Improve this Doc View Source

To<TController>(ILocalRedirectTestBuilder, Expression<Action<TController>>)

Tests whether Microsoft.AspNetCore.Mvc.LocalRedirectResult redirects to specific action.

Declaration
public static IAndLocalRedirectTestBuilder To<TController>(this ILocalRedirectTestBuilder builder, Expression<Action<TController>> actionCall)where TController : class
Parameters
Type Name Description
ILocalRedirectTestBuilder builder

Instance of ILocalRedirectTestBuilder type.

System.Linq.Expressions.Expression<System.Action<TController>> actionCall

Method call expression indicating the expected redirect action.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.LocalRedirect.IAndLocalRedirectTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.LocalRedirect.IAndLocalRedirectTestBuilder.

Type Parameters
Name Description
TController Type of expected redirect controller.
| Improve this Doc View Source

To<TController>(ILocalRedirectTestBuilder, Expression<Func<TController, Task>>)

Tests whether Microsoft.AspNetCore.Mvc.LocalRedirectResult redirects to specific asynchronous action.

Declaration
public static IAndLocalRedirectTestBuilder To<TController>(this ILocalRedirectTestBuilder builder, Expression<Func<TController, Task>> actionCall)where TController : class
Parameters
Type Name Description
ILocalRedirectTestBuilder builder

Instance of ILocalRedirectTestBuilder type.

System.Linq.Expressions.Expression<System.Func<TController, System.Threading.Tasks.Task>> actionCall

Method call expression indicating the expected asynchronous action.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.LocalRedirect.IAndLocalRedirectTestBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.LocalRedirect.IAndLocalRedirectTestBuilder.

Type Parameters
Name Description
TController Type of expected redirect controller.
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX