Mocker Properties

The Mocker type exposes the following members.

Properties


  Name Description
Public property ConstructorHistory
Gets the constructor history.
Public property DbConnection
Gets the database connection. The default value is a memory Sqlite database connection unless otherwise set.
Public property ExceptionLog
Tracks internal exceptions for debugging.
Public property HttpClient
The virtual mock http client that is used by mocker unless overridden with the Strict property.
Public 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.
Public property 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.