MockerHttpExtensions..::..SetupMessageProtectedAsync<(Of <(<'TMock, TReturn>)>)> Method
Setups the message protected asynchronous.
Namespace:
FastMoq.ExtensionsAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
public static void SetupMessageProtectedAsync<TMock, TReturn>( this Mocker mocker, string methodOrPropertyName, Func<TReturn> messageFunc, params Nullable<Object>[] args )
<ExtensionAttribute> _ Public Shared Sub SetupMessageProtectedAsync(Of TMock, TReturn) ( _ mocker As Mocker, _ methodOrPropertyName As String, _ messageFunc As Func(Of TReturn), _ ParamArray args As Nullable(Of Object)() _ )
[ExtensionAttribute] public: generic<typename TMock, typename TReturn> static void SetupMessageProtectedAsync( Mocker^ mocker, String^ methodOrPropertyName, Func<TReturn>^ messageFunc, ... array<Nullable<Object^>>^ args )
Type Parameters
- TMock
- The type of the mock.
- TReturn
- The type of the return value.
Parameters
- mocker
- Type: FastMoq..::..Mocker
The mocker.
- methodOrPropertyName
- Type: String
Name of the method or property.
- messageFunc
- Type: Func<(Of <(<'TReturn>)>)>
The message function.