Initializes the factory with the given defaultBehavior
for newly created mocks from the factory.
Namespace:
MoqAssembly: Moq (in Moq.dll) Version: 4.0.812.4 (4.0.0.0)
Syntax
| C# |
|---|
public MockFactory( MockBehavior defaultBehavior ) |
Parameters
- defaultBehavior
- Type: Moq..::.MockBehavior
The behavior to use for mocks created using the Create<(Of <(T>)>)()()() factory method if not overriden by using the Create<(Of <(T>)>)(MockBehavior) overload.