New to Telerik JustMockStart a free 30-day trial

Interface containing overloads of the When method.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction

Assembly:Telerik.JustMock.dll

Type Parameters:

TContainer

Syntax:

C#
public interface IWhen<TContainer>

Derived Classes: ActionExpectationFuncExpectation<TReturn>

Methods

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.

C#
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:conditionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, bool>

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

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.

C#
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:conditionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, bool>

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

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.

C#
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:conditionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, bool>

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

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.

C#
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:conditionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, bool>

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

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.

C#
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:conditionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>

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

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.

C#
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:conditionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>

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

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.

C#
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:conditionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>

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

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.

C#
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, bool> condition)
Parameters:conditionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, bool>

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

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.

C#
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, bool> condition)
Parameters:conditionFunc<T1, T2, T3, T4, T5, T6, T7, T8, bool>

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

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.

C#
TContainer When<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, bool> condition)
Parameters:conditionFunc<T1, T2, T3, T4, T5, T6, T7, bool>

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

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.

C#
TContainer When<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, bool> condition)
Parameters:conditionFunc<T1, T2, T3, T4, T5, T6, bool>

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

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.

C#
TContainer When<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, bool> condition)
Parameters:conditionFunc<T1, T2, T3, T4, T5, bool>

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

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.

C#
TContainer When<T1, T2, T3, T4>(Func<T1, T2, T3, T4, bool> condition)
Parameters:conditionFunc<T1, T2, T3, T4, bool>

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

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.

C#
TContainer When<T1, T2, T3>(Func<T1, T2, T3, bool> condition)
Parameters:conditionFunc<T1, T2, T3, bool>

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

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.

C#
TContainer When<T1, T2>(Func<T1, T2, bool> condition)
Parameters:conditionFunc<T1, T2, bool>

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

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.

C#
TContainer When<T1>(Func<T1, bool> condition)
Parameters:conditionFunc<T1, bool>

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