Class ShouldReturnTestBuilderViewResultExtensions
Contains Microsoft.AspNetCore.Mvc.ViewResult extension methods for IShouldReturnTestBuilder<TActionResult>.
Inheritance
System.Object
ShouldReturnTestBuilderViewResultExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.ViewActionResults.dll
Syntax
public static class ShouldReturnTestBuilderViewResultExtensions
Methods
| Improve this Doc View SourceView<TActionResult>(IShouldReturnTestBuilder<TActionResult>)
Tests whether the action result is Microsoft.AspNetCore.Mvc.ViewResult with the default view name.
Declaration
public static IAndViewTestBuilder View<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. |
View<TActionResult>(IShouldReturnTestBuilder<TActionResult>, String)
Tests whether the action result is Microsoft.AspNetCore.Mvc.ViewResult with the provided view name.
Declaration
public static IAndViewTestBuilder View<TActionResult>(this IShouldReturnTestBuilder<TActionResult> builder, string viewName)
Parameters
Type | Name | Description |
---|---|---|
IShouldReturnTestBuilder<TActionResult> | builder | Instance of IShouldReturnTestBuilder<TActionResult> type. |
System.String | viewName | Expected 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. |