Mocker..::..GetMock<(Of <(<'T>)>)> Method (array<Object>[]()[][])

Gets or creates the mock of type T.

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

Syntax


public Mock<T> GetMock<T>(
	params Object[] args
)
Public Function GetMock(Of T) ( _
	ParamArray args As Object() _
) As Mock(Of T)
public:
generic<typename T>
Mock<T>^ GetMock(
	... array<Object^>^ args
)

Type Parameters

T
The Mock Type, usually an interface.

Parameters

args
Type: array<Object>[]()[][]
The arguments to get the constructor.

Return Value

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