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