Interface IWhen<TContainer>
Interface containing overloads of the When method.
Namespace: Telerik.JustMock.Expectations.Abstraction
Assembly: Telerik.JustMock.dll
Syntax
public interface IWhen<TContainer>
Type Parameters
TContainer
|
Methods
When<T1>(Func<T1, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1>(Func<T1, bool> condition)
Parameters
System.Func<T1, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
T13
Type of the thirteenth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
T13
Type of the thirteenth parameter of the anonymous method that this delegate encapsulates |
T14
Type of the fourteenth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
T13
Type of the thirteenth parameter of the anonymous method that this delegate encapsulates |
T14
Type of the fourteenth parameter of the anonymous method that this delegate encapsulates |
T15
Type of the fifteenth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
T13
Type of the thirteenth parameter of the anonymous method that this delegate encapsulates |
T14
Type of the fourteenth parameter of the anonymous method that this delegate encapsulates |
T15
Type of the fifteenth parameter of the anonymous method that this delegate encapsulates |
T16
Type of the sixteenth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2>(Func<T1, T2, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2>(Func<T1, T2, bool> condition)
Parameters
System.Func<T1, T2, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3>(Func<T1, T2, T3, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3>(Func<T1, T2, T3, bool> condition)
Parameters
System.Func<T1, T2, T3, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4>(Func<T1, T2, T3, T4, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4>(Func<T1, T2, T3, T4, bool> condition)
Parameters
System.Func<T1, T2, T3, T4, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
When<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, Boolean>)
Specifies an additional condition that must be true for this arrangement to be considered when the arranged member is called. This condition is evaluated in addition to the conditions imposed by any argument matchers in the arrangement.
This method allows a more general way of matching arrangements than argument matchers do.
Declaration
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, System.Boolean>
condition
A function that should return 'true' when this arrangement should be considered and 'false' if this arrangement doesn't match the user criteria. |
Returns
TContainer
|
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |