







Initializes the factory with the given defaultBehavior
for newly created mocks from the factory.
Namespace:
Moq
Assembly:
Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.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.