Class InstanceModel<TClass>
Class InstanceModel represents a type and how to create that type's instance.
Implements the InstanceModel
Inheritance
InstanceModel<TClass>
Assembly: FastMoq.Core.dll
Syntax
[ExcludeFromCodeCoverage]
public class InstanceModel<TClass> : InstanceModel, IInstanceModel, IHistoryModel
Type Parameters
| Name |
Description |
| TClass |
The type of the t class.
|
Constructors
InstanceModel()
Declaration
InstanceModel(IInstanceModel)
Declaration
public InstanceModel(IInstanceModel model)
Parameters
InstanceModel(Func<Mocker, object?, TClass>?)
Declaration
public InstanceModel(Func<Mocker, object?, TClass>? createFunc)
Parameters
InstanceModel(Func<Mocker, object?, TClass>?, List<object?>)
Declaration
public InstanceModel(Func<Mocker, object?, TClass>? createFunc, List<object?> arguments)
Parameters
InstanceModel(Func<Mocker, TClass>?)
Declaration
public InstanceModel(Func<Mocker, TClass>? createFunc)
Parameters
| Type |
Name |
Description |
| Func<Mocker, TClass> |
createFunc |
|
InstanceModel(Func<Mocker, TClass>?, List<object?>)
Declaration
public InstanceModel(Func<Mocker, TClass>? createFunc, List<object?> arguments)
Parameters
Properties
CreateFunc
Gets or sets the create function.
Declaration
public InstanceFunction? CreateFunc { get; set; }
Property Value
InstanceType
Gets the type of the instance.
Declaration
public override Type InstanceType { get; }
Property Value
| Type |
Description |
| Type |
The type of the instance.
|
Overrides
Implements
Extension Methods
See Also