Class ComponentShouldHaveTestBuilderHttpExtensions
Contains Microsoft.AspNetCore.Http.HttpResponse extension methods for IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder>.
Inheritance
System.Object
ComponentShouldHaveTestBuilderHttpExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Http.dll
Syntax
public static class ComponentShouldHaveTestBuilderHttpExtensions
Methods
| Improve this Doc View SourceHttpResponse<TBuilder>(IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder>, Action<IHttpResponseTestBuilder>)
Tests whether the component applies additional features to the Microsoft.AspNetCore.Http.HttpResponse.
Declaration
public static TBuilder HttpResponse<TBuilder>(this IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder> builder, Action<IHttpResponseTestBuilder> httpResponseTestBuilder)where TBuilder : IBaseTestBuilder
Parameters
Type | Name | Description |
---|---|---|
IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder> | builder | Instance of IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder> type. |
System.Action<IHttpResponseTestBuilder> | httpResponseTestBuilder | Builder for testing the Microsoft.AspNetCore.Http.HttpResponse. |
Returns
Type | Description |
---|---|
TBuilder | The same component should have test builder. |
Type Parameters
Name | Description |
---|---|
TBuilder | Class representing ASP.NET Core MVC test builder. |