Mocker..::..GetRequiredMock<(Of <(<'T>)>)> Method

Gets the required mock.

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

Syntax


public Mock<T> GetRequiredMock<T>()
Public Function GetRequiredMock(Of T) As Mock(Of T)
public:
generic<typename T>
Mock<T>^ GetRequiredMock()

Type Parameters

T
The Mock Type, usually an interface.

Return Value

[T:FastMoq.Models.MockModel<T>.Mock].

Exceptions


ExceptionCondition
ArgumentExceptiontype must be a class. - type
InvalidOperationExceptionMock must exist. - type