Class With
Provides easy replacing of expression method argument values.
Inheritance
System.Object
With
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Abstractions.dll
Syntax
public static class With
Methods
| Improve this Doc View SourceAny<TParameter>()
Indicates that a argument should not be considered in method call lambda expression.
Declaration
public static TParameter Any<TParameter>()
Returns
Type | Description |
---|---|
TParameter | Default value of the parameter. |
Type Parameters
Name | Description |
---|---|
TParameter | Type of parameter. |
Remarks
Using this method in route testing will indicate that the route value should be ignored during the test.
Default<TParameter>()
Returns an instance of the provided parameter type created with its default constructor.
Declaration
public static TParameter Default<TParameter>()where TParameter : new ()
Returns
Type | Description |
---|---|
TParameter | Default value of the parameter. |
Type Parameters
Name | Description |
---|---|
TParameter | Type of parameter. |
No<TParameter>()
Indicates that a argument should not be considered in method call lambda expression.
Declaration
public static TParameter No<TParameter>()
Returns
Type | Description |
---|---|
TParameter | Default value of the parameter. |
Type Parameters
Name | Description |
---|---|
TParameter | Type of parameter. |