AutoMock.

Mock<T>() Method

Summary

Finds (creating if needed) the actual mock for the provided type.

Syntax

public Mock<T> Mock<T>() where T : class

Type Parameters

Name Description
T Type to mock.

Return Value

Type Description
Mock<T> A mock of type T.