Mocker..::..GetRequiredMock Method (Type)

Gets the required mock.

Namespace:  FastMoq
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public Mock GetRequiredMock(
	Type type
)
Public Function GetRequiredMock ( _
	type As Type _
) As Mock
public:
Mock^ GetRequiredMock(
	Type^ type
)

Parameters

type
Type: Type
The mock type, usually an interface.

Return Value

Mock.

Exceptions


ExceptionCondition
ArgumentExceptiontype must be a class. - type
InvalidOperationExceptiontype must be a class. - type