Gets the mock and allows an action against the mock.
Namespace:
FastMoq
Assembly:
FastMoq.Core (in FastMoq.Core.dll)
Public Function GetMockAsync(Of T) ( _
mockFunc As Func(Of Mock(Of T), Task), _
ParamArray args As Object() _
) As Task
public:
generic<typename T>
Task^ GetMockAsync(
Func<Mock<T>^, Task^>^ mockFunc,
... array<Object^>^ args
)
Type Parameters
- T
Parameters
- mockFunc
- Type: Func<(Of <(<'Mock<(Of <(<'T>)>)>, Task>)>)>
The mock action.
- args
- Type: array<Object>[]()[][]
The arguments.
Return Value
Mock<T> of the mock.