New to Telerik JustMockStart a free 30-day trial

Provides methods for running custom delegates instead of the arranged member body.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction

Assembly:Telerik.JustMock.dll

Type Parameters:

TContainer

Syntax:

C#
public interface IDoInstead<TContainer>

Derived Classes: ActionExpectationCollectionExpectation<TReturn>CommonExpectation<TContainer>FuncExpectation<TReturn>

Methods

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead(Action action)
Parameters:actionAction

Delegate to run when the arranged call occurs.

Returns:

TContainer

The current expectation so that you can continue the arrangement.

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead(Delegate @delegate)
Parameters:delegateDelegate

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7, T8, T9>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7, T8>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6, T7>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6> action)
Parameters:actionAction<T1, T2, T3, T4, T5, T6>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5> action)
Parameters:actionAction<T1, T2, T3, T4, T5>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3, T4>(Action<T1, T2, T3, T4> action)
Parameters:actionAction<T1, T2, T3, T4>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2, T3>(Action<T1, T2, T3> action)
Parameters:actionAction<T1, T2, T3>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1, T2>(Action<T1, T2> action)
Parameters:actionAction<T1, T2>

Delegate to run when the arranged call occurs.

Returns:

TContainer

Runs the supplied delegate instead of the arranged member body.

C#
TContainer DoInstead<T1>(Action<T1> action)
Parameters:actionAction<T1>

Delegate to run when the arranged call occurs.

Returns:

TContainer

In this article
DefinitionMethodsDoInstead(Action)DoInstead(Delegate)DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>)DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>)DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>)DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>)DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>)DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>)DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>)DoInstead<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8>)DoInstead<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7>)DoInstead<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6>)DoInstead<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5>)DoInstead<T1, T2, T3, T4>(Action<T1, T2, T3, T4>)DoInstead<T1, T2, T3>(Action<T1, T2, T3>)DoInstead<T1, T2>(Action<T1, T2>)DoInstead<T1>(Action<T1>)
Not finding the help you need?
Contact Support