MockerHttpExtensions..::..SetupMessageProtected<(Of <(<'TMock, TReturn>)>)> Method
Setups the message protected.
Namespace:
FastMoq.ExtensionsAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
public static void SetupMessageProtected<TMock, TReturn>( this Mocker mocker, string methodOrPropertyName, Func<TReturn> messageFunc, params Nullable<Object>[] args )
<ExtensionAttribute> _ Public Shared Sub SetupMessageProtected(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 SetupMessageProtected( 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.