MockerTestBase<(Of <(<'TComponent>)>)> Constructor (Action<(Of <(<'Mocker>)>)>, Nullable<(Of <(<'Func<(Of <(<'Mocker, TComponent>)>)>>)>)>, Action<(Of <(<'TComponent>)>)>)

Initializes a new instance of the MockerTestBase<(Of <(<'TComponent>)>)> class.

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

Syntax


protected MockerTestBase(
	Action<Mocker> setupMocksAction,
	Nullable<Func<Mocker, TComponent>> createComponentAction,
	Action<TComponent> createdComponentAction
)
Protected Sub New ( _
	setupMocksAction As Action(Of Mocker), _
	createComponentAction As Nullable(Of Func(Of Mocker, TComponent)), _
	createdComponentAction As Action(Of TComponent) _
)
protected:
MockerTestBase(
	Action<Mocker^>^ setupMocksAction, 
	Nullable<Func<Mocker^, TComponent>^> createComponentAction, 
	Action<TComponent>^ createdComponentAction
)

Parameters

setupMocksAction
Type: Action<(Of <(<'Mocker>)>)>
The action to set up the mocks before component creation.
createComponentAction
Type: Nullable<(Of <(<'Func<(Of <(<'Mocker, TComponent>)>)>>)>)>
The action to override component creation.
createdComponentAction
Type: Action<(Of <(<'TComponent>)>)>
The action to do after the component is created.