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

Class ShouldReturnTestBuilderPartialViewResultExtensions

Contains Microsoft.AspNetCore.Mvc.PartialViewResult extension methods for IShouldReturnTestBuilder<TActionResult>.

Inheritance
System.Object
ShouldReturnTestBuilderPartialViewResultExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.ViewActionResults.dll
Syntax
public static class ShouldReturnTestBuilderPartialViewResultExtensions

Methods

| Improve this Doc View Source

PartialView<TActionResult>(IShouldReturnTestBuilder<TActionResult>)

Tests whether the action result is Microsoft.AspNetCore.Mvc.PartialViewResult with the default view name.

Declaration
public static IAndViewTestBuilder PartialView<TActionResult>(this IShouldReturnTestBuilder<TActionResult> builder)
Parameters
Type Name Description
IShouldReturnTestBuilder<TActionResult> builder

Instance of IShouldReturnTestBuilder<TActionResult> type.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.View.IAndViewTestBuilder

Test builder of MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.View.IAndViewTestBuilder type.

Type Parameters
Name Description
TActionResult Type of action result type.
| Improve this Doc View Source

PartialView<TActionResult>(IShouldReturnTestBuilder<TActionResult>, String)

Tests whether the action result is Microsoft.AspNetCore.Mvc.PartialViewResult with the provided partial view name.

Declaration
public static IAndViewTestBuilder PartialView<TActionResult>(this IShouldReturnTestBuilder<TActionResult> builder, string viewName)
Parameters
Type Name Description
IShouldReturnTestBuilder<TActionResult> builder

Instance of IShouldReturnTestBuilder<TActionResult> type.

System.String viewName

Expected partial view name.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.View.IAndViewTestBuilder

Test builder of MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.View.IAndViewTestBuilder type.

Type Parameters
Name Description
TActionResult Type of action result type.
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX