MockerHttpExtensions..::..SetupMessage<(Of <(<'TMock, TReturn>)>)> Method
Setups the message.
Namespace:
FastMoq.ExtensionsAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
public static void SetupMessage<TMock, TReturn>( this Mocker mocker, Expression<Func<TMock, TReturn>> expression, Func<TReturn> messageFunc )
<ExtensionAttribute> _ Public Shared Sub SetupMessage(Of TMock, TReturn) ( _ mocker As Mocker, _ expression As Expression(Of Func(Of TMock, TReturn)), _ messageFunc As Func(Of TReturn) _ )
[ExtensionAttribute] public: generic<typename TMock, typename TReturn> static void SetupMessage( Mocker^ mocker, Expression<Func<TMock, TReturn>^>^ expression, Func<TReturn>^ messageFunc )
Type Parameters
- TMock
- The type of the mock.
- TReturn
- The type of the return value.
Parameters
- mocker
- Type: FastMoq..::..Mocker
The mocker.
- expression
- Type: Expression<(Of <(<'Func<(Of <(<'TMock, TReturn>)>)>>)>)>
The expression.
- messageFunc
- Type: Func<(Of <(<'TReturn>)>)>
The message function.