Click or drag to resize
TestUtilitiesCreateMockImplementationT Method
Creates a Moq stub for an object and registers it with the class factory. The instance returned by the method is the one the code under test will always receive when it asks for an instantiation of the interface.

Namespace: Test.Framework
Assembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Mock<T> CreateMockImplementation<T>()
where T : class

Type Parameters

T

Return Value

Type: MockT
See Also