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
Public Function Mock(Of T As Class) (
ParamArray parameters As Parameter()
) As Mock(Of T)
Parameters
- parameters
- Type: Autofac.CoreParameter
Optional parameters.
Type Parameters
- T
- Type to mock.
Return Value
Type:
MockTA mock of type
T.
See Also