Interface IRouteTestBuilder
Used for building a route test.
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Routing
Assembly:MyTested.AspNetCore.Mvc.Routing.dll
Syntax
public interface IRouteTestBuilder
Methods
| Improve this Doc View SourceShouldMap(HttpRequest)
Sets the HttpRequest for the route test.
Declaration
IShouldMapTestBuilder ShouldMap(HttpRequest request)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpRequest | request | Instance of HttpRequest type. |
Returns
Type | Description |
---|---|
IShouldMapTestBuilder | Test builder of IShouldMapTestBuilder type. |
ShouldMap(Action<IHttpRequestBuilder>)
Sets the HttpRequest for the route test.
Declaration
IShouldMapTestBuilder ShouldMap(Action<IHttpRequestBuilder> httpRequestBuilder)
Parameters
Type | Name | Description |
---|---|---|
System.Action<IHttpRequestBuilder> | httpRequestBuilder | Action setting the HttpRequest by using IHttpRequestBuilder. |
Returns
Type | Description |
---|---|
IShouldMapTestBuilder | Test builder of IShouldMapTestBuilder type. |
ShouldMap(String)
Sets the route location to test.
Declaration
IShouldMapTestBuilder ShouldMap(string location)
Parameters
Type | Name | Description |
---|---|---|
System.String | location | Location as string. |
Returns
Type | Description |
---|---|
IShouldMapTestBuilder | Test builder of IShouldMapTestBuilder type. |
ShouldMap(Uri)
Sets the route location to test.
Declaration
IShouldMapTestBuilder ShouldMap(Uri location)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | location | Location as Uri. |
Returns
Type | Description |
---|---|
IShouldMapTestBuilder | Test builder of IShouldMapTestBuilder type. |