Interface IResolvedRouteTestBuilder
Used for testing route details.
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Routes
Assembly:MyTested.AspNetCore.Mvc.Core.dll
Syntax
public interface IResolvedRouteTestBuilder
Methods
| Improve this Doc View SourceToDataToken(String)
Tests whether the resolved route contains data token with the provided key.
Declaration
IAndResolvedRouteTestBuilder ToDataToken(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Expected data token key. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder. |
ToDataToken(String, Object)
Tests whether the resolved route contains data token with the provided key and corresponding value.
Declaration
IAndResolvedRouteTestBuilder ToDataToken(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Expected data token key. |
System.Object | value | Expected data token value. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder. |
ToDataTokens(IDictionary<String, Object>)
Tests whether the resolved route contains the provided data tokens.
Declaration
IAndResolvedRouteTestBuilder ToDataTokens(IDictionary<string, object> dataTokens)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | dataTokens | Dictionary of data tokens. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder. |
ToDataTokens(Object)
Tests whether the resolved route contains the provided data tokens.
Declaration
IAndResolvedRouteTestBuilder ToDataTokens(object dataTokens)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataTokens | Anonymous object of data tokens. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder. |
ToRouteValue(String)
Tests whether the resolved RouteValueDictionary contains route value with the provided key.
Declaration
IAndResolvedRouteTestBuilder ToRouteValue(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Expected route value key. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder. |
ToRouteValue(String, Object)
Tests whether the resolved RouteValueDictionary contains route value with the provided key and corresponding value.
Declaration
IAndResolvedRouteTestBuilder ToRouteValue(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Expected route value key. |
System.Object | value | Expected route value. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder. |
ToRouteValues(IDictionary<String, Object>)
Tests whether the resolved RouteValueDictionary contains the provided route values.
Declaration
IAndResolvedRouteTestBuilder ToRouteValues(IDictionary<string, object> routeValues)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | routeValues | Dictionary of route values. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder. |
ToRouteValues(Object)
Tests whether the resolved RouteValueDictionary contains the provided route values.
Declaration
IAndResolvedRouteTestBuilder ToRouteValues(object routeValues)
Parameters
Type | Name | Description |
---|---|---|
System.Object | routeValues | Anonymous object of route values. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder. |