MockerCreationExtensions..::..CreateInstance<(Of <(<'T, TParam1>)>)> Method (Mocker, Dictionary<(Of <(<'Type, Nullable<(Of <(<'Object>)>)>>)>)>)
Creates an instance of T. Parameter data allows matching of constructors by type and uses those values in the creation of the instance.
Namespace:
FastMoq.ExtensionsAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
public static Nullable<T> CreateInstance<T, TParam1>( this Mocker mocker, Dictionary<Type, Nullable<Object>> data )
<ExtensionAttribute> _ Public Shared Function CreateInstance(Of T, TParam1) ( _ mocker As Mocker, _ data As Dictionary(Of Type, Nullable(Of Object)) _ ) As Nullable(Of T)
[ExtensionAttribute] public: generic<typename T, typename TParam1> static Nullable<T> CreateInstance( Mocker^ mocker, Dictionary<Type^, Nullable<Object^>>^ data )
Type Parameters
- T
- TParam1
- The type of the t param1.
Parameters
- mocker
- Type: FastMoq..::..Mocker
The mocker.