New to Telerik JustMockStart a free 30-day trial

Provides methods for specifying return values for arranged calls.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction

Assembly:Telerik.JustMock.dll

Type Parameters:

TReturn

Return type of the arranged member.

Syntax:

C#
public interface IReturns<TReturn>

Derived Classes: FuncExpectation<TReturn>

Methods

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<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, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<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, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<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, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<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, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<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, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, T8, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, T7, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, T6, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, T5, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2, T3, T4>(Func<T1, T2, T3, T4, TReturn> func)
Parameters:funcFunc<T1, T2, T3, T4, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2, T3>(Func<T1, T2, T3, TReturn> func)
Parameters:funcFunc<T1, T2, T3, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1, T2>(Func<T1, T2, TReturn> func)
Parameters:funcFunc<T1, T2, TReturn>Returns:

IAssertable

The current expectation so that you can continue the arrangement.

Specifies the return value for the arranged call by using the supplied delegate.

C#
IAssertable Returns<T1>(Func<T1, TReturn> func)
Parameters:funcFunc<T1, TReturn>Returns:

IAssertable

Reference to IAssertable interface so that you can continue the arrangement.

In this article
DefinitionMethodsReturns<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, TReturn>)Returns<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, TReturn>)Returns<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, TReturn>)Returns<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, TReturn>)Returns<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, TReturn>)Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>)Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>)Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>)Returns<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TReturn>)Returns<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, TReturn>)Returns<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, TReturn>)Returns<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, TReturn>)Returns<T1, T2, T3, T4>(Func<T1, T2, T3, T4, TReturn>)Returns<T1, T2, T3>(Func<T1, T2, T3, TReturn>)Returns<T1, T2>(Func<T1, T2, TReturn>)Returns<T1>(Func<T1, TReturn>)
Not finding the help you need?
Contact Support