Class ComponentBuilderRoutingExtensions
Contains HTTP extension methods for IBaseTestBuilderWithComponentBuilder<TBuilder>.
Inheritance
System.Object
ComponentBuilderRoutingExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Routing.dll
Syntax
public static class ComponentBuilderRoutingExtensions
Methods
| Improve this Doc View SourceWithRouteData<TBuilder>(IBaseTestBuilderWithComponentBuilder<TBuilder>)
Indicates that route values should be extracted from the provided method call expression.
Declaration
public static TBuilder WithRouteData<TBuilder>(this IBaseTestBuilderWithComponentBuilder<TBuilder> builder)where TBuilder : IBaseTestBuilder
Parameters
Type | Name | Description |
---|---|---|
IBaseTestBuilderWithComponentBuilder<TBuilder> | builder | Instance of IBaseTestBuilderWithComponentBuilder<TBuilder> type. |
Returns
Type | Description |
---|---|
TBuilder | The same component builder. |
Type Parameters
Name | Description |
---|---|
TBuilder | Class representing ASP.NET Core MVC test builder. |
WithRouteData<TBuilder>(IBaseTestBuilderWithComponentBuilder<TBuilder>, Object)
Indicates that route values should be extracted from the provided action call expression adding the given additional values.
Declaration
public static TBuilder WithRouteData<TBuilder>(this IBaseTestBuilderWithComponentBuilder<TBuilder> builder, object additionalRouteValues)where TBuilder : IBaseTestBuilder
Parameters
Type | Name | Description |
---|---|---|
IBaseTestBuilderWithComponentBuilder<TBuilder> | builder | Instance of IBaseTestBuilderWithComponentBuilder<TBuilder> type. |
System.Object | additionalRouteValues | Anonymous object containing route values. |
Returns
Type | Description |
---|---|
TBuilder | The same component builder. |
Type Parameters
Name | Description |
---|---|
TBuilder | Class representing ASP.NET Core MVC test builder. |