Interface
IWhen<TContainer>

Interface containing overloads of the When method.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction

Assembly:Telerik.JustMock.dll

Type Parameters:

TContainer

Syntax:

cs-api-definition
public interface IWhen<TContainer>

Methods

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>)

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

cs-api-definition
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

condition

Func<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

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>)

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

cs-api-definition
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

condition

Func<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

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>)

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

cs-api-definition
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

condition

Func<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

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>)

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

cs-api-definition
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

condition

Func<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

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>)

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

cs-api-definition
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

condition

Func<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

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>)

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

cs-api-definition
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

condition

Func<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

When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>)

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

cs-api-definition
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

condition

Func<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

When<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, bool>)

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

cs-api-definition
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, bool> condition)

Parameters

condition

Func<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

When<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, bool>)

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

cs-api-definition
TContainer When<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, bool> condition)

Parameters

condition

Func<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

When<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, bool>)

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

cs-api-definition
TContainer When<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, bool> condition)

Parameters

condition

Func<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

When<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, bool>)

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

cs-api-definition
TContainer When<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, bool> condition)

Parameters

condition

Func<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

When<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, bool>)

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

cs-api-definition
TContainer When<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, bool> condition)

Parameters

condition

Func<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

When<T1, T2, T3, T4>(Func<T1, T2, T3, T4, bool>)

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

cs-api-definition
TContainer When<T1, T2, T3, T4>(Func<T1, T2, T3, T4, bool> condition)

Parameters

condition

Func<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

When<T1, T2, T3>(Func<T1, T2, T3, bool>)

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

cs-api-definition
TContainer When<T1, T2, T3>(Func<T1, T2, T3, bool> condition)

Parameters

condition

Func<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

When<T1, T2>(Func<T1, T2, bool>)

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

cs-api-definition
TContainer When<T1, T2>(Func<T1, T2, bool> condition)

Parameters

condition

Func<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

When<T1>(Func<T1, bool>)

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

cs-api-definition
TContainer When<T1>(Func<T1, bool> condition)

Parameters

condition

Func<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