Class ShouldReturnTestBuilderJsonResultExtensions
Contains Microsoft.AspNetCore.Mvc.JsonResult extension methods for IShouldReturnTestBuilder<TActionResult>.
Inheritance
System.Object
ShouldReturnTestBuilderJsonResultExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.ViewActionResults.dll
Syntax
public static class ShouldReturnTestBuilderJsonResultExtensions
Methods
| Improve this Doc View SourceJson<TActionResult>(IShouldReturnTestBuilder<TActionResult>)
Tests whether the action result is Microsoft.AspNetCore.Mvc.JsonResult.
Declaration
public static IAndJsonTestBuilder Json<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.Json.IAndJsonTestBuilder | Test builder of MyTested.AspNetCore.Mvc.Builders.Contracts.ActionResults.Json.IAndJsonTestBuilder type. |
Type Parameters
Name | Description |
---|---|
TActionResult | Type of action result type. |