Mocker..::..GetMessageProtectedAsync<(Of <(<'TMock, TReturn>)>)> Method

Gets the message protected asynchronous.

Namespace:  FastMoq
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public ISetup<TMock, Task<TReturn>> GetMessageProtectedAsync<TMock, TReturn>(
	string methodOrPropertyName,
	params Object[] args
)
Public Function GetMessageProtectedAsync(Of TMock, TReturn) ( _
	methodOrPropertyName As String, _
	ParamArray args As Object() _
) As ISetup(Of TMock, Task(Of TReturn))
public:
generic<typename TMock, typename TReturn>
ISetup<TMock, Task<TReturn>^>^ GetMessageProtectedAsync(
	String^ methodOrPropertyName, 
	... array<Object^>^ args
)

Type Parameters

TMock
The type of the t mock.
TReturn
The type of the t return.

Parameters

methodOrPropertyName
Type: String
Name of the method or property.
args
Type: array<Object>[]()[][]
The arguments.

Return Value

ISetup<TMock, Task<TReturn>>.