Gets the instance for the given T and runs the given function against the object.
Namespace:
FastMoq
Assembly:
FastMoq.Core (in FastMoq.Core.dll)
public T GetObject<T>(
Action<T> initAction
)
Public Function GetObject(Of T) ( _
initAction As Action(Of T) _
) As T
public:
generic<typename T>
T GetObject(
Action<T>^ initAction
)
Type Parameters
- T
- The Mock Type, usually an interface.
Parameters
- initAction
- Type: Action<(Of <(<'T>)>)>
The initialize action.
Return Value
T.