Gets or creates the mock of type T.
Namespace:
FastMoq
Assembly:
FastMoq.Core (in FastMoq.Core.dll)
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].