Class AsyncExtensions
Defines the expectation for a specific method.
Inheritance
Inherited Members
Namespace: Telerik.JustMock
Assembly: Telerik.JustMock.dll
Syntax
public static class AsyncExtensions
Methods
ReturnsAsync<TResult>(FuncExpectation<Task<TResult>>, TResult)
Specifies the return value for an asynchronous method.
Declaration
public static IAssertable ReturnsAsync<TResult>(this FuncExpectation<Task<TResult>> mock, TResult value)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
TResult
value
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
TResult
Type of the return value. |
ReturnsAsync<TResult>(FuncExpectation<Task<TResult>>, Func<TResult>)
Specifies a function to evaluate and return the value for an asynchronous method.
Declaration
public static IAssertable ReturnsAsync<TResult>(this FuncExpectation<Task<TResult>> mock, Func<TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
System.Func<TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
TResult
Type of the return value. |
ReturnsAsync<TResult>(FuncExpectation<Task>, TResult)
Specifies the return value for an asynchronous method.
Declaration
public static IAssertable ReturnsAsync<TResult>(this FuncExpectation<Task> mock, TResult value)
Parameters
FuncExpectation<System.Threading.Tasks.Task>
mock
|
TResult
value
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
TResult
Type of the return value. |
ReturnsAsync<TResult>(FuncExpectation<Task>, Func<TResult>)
Specifies a function to evaluate and return the value for an asynchronous method.
Declaration
public static IAssertable ReturnsAsync<TResult>(this FuncExpectation<Task> mock, Func<TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task>
mock
|
System.Func<TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, TResult>(FuncExpectation<Task<TResult>>, Func<T1, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
System.Func<T1, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
System.Func<T1, T2, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
System.Func<T1, T2, T3, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
System.Func<T1, T2, T3, T4, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |
ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(FuncExpectation<Task<TResult>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public static IAssertable ReturnsAsync<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(this FuncExpectation<Task<TResult>> mock, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> valueFunction)
Parameters
FuncExpectation<System.Threading.Tasks.Task<TResult>>
mock
|
Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>
valueFunction
The function that will evaluate the return value. |
Returns
IAssertable
Reference to IAssertable interface. |
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 |
TResult
Type of the return value. |