Click or drag to resize

AutoMockMockT Method

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

Namespace:  Autofac.Extras.Moq
Assembly:  Autofac.Extras.Moq (in Autofac.Extras.Moq.dll) Version: 6.0.0+4195b730a1f4c2330f7a6e7642c9ad63581968b7
Syntax
public Mock<T> Mock<T>(
	params Parameter[] parameters
)
where T : class

Parameters

parameters
Type: Autofac.CoreParameter
Optional parameters.

Type Parameters

T
Type to mock.

Return Value

Type: MockT
A mock of type T.
See Also