Mocker Properties
The Mocker type exposes the following members.
Properties
Name | Description | |
---|---|---|
ConstructorHistory |
Gets the constructor history.
|
|
DbConnection |
Gets the database connection. The default value is a memory Sqlite database connection unless otherwise set.
|
|
ExceptionLog |
Tracks internal exceptions for debugging.
|
|
HttpClient |
The virtual mock http client that is used by mocker unless overridden with the Strict property.
|
|
InnerMockResolution |
When creating a mocks of a class, true indicates to recursively inject the mocks inside of that class;
otherwise properties are not auto mocked.
|
|
Strict |
Gets or sets a value indicating whether this Mocker is strict.
Strict prevents certain features for automatically assuming or substituting preconfigured objects such as
IFileSystem and HttpClient.
Strict prevents private methods from being used during an invoke if public was requested. Not strict would mean
that private methods may be
substituted if the public methods are not found.
Strict prevents private constructors from being used during object creation if public was requested. Not strict
would mean that private constructors may be
substituted if the public constructors are not found.
Strict sets the MockBehavior option.
|