Telerik® JustMock™ by Progress

Creates a mock instance from a given type.

Namespace: Telerik.JustMock
Assembly: Telerik.JustMock (in Telerik.JustMock.dll) Version: 2013.3.1021.0 (2013.3.1021.0)

Syntax

C#
public static Object Create(
	Type type,
	Behavior behavior
)
Visual Basic
Public Shared Function Create ( _
	type As Type, _
	behavior As Behavior _
) As Object

Parameters

type
Type: System..::..Type
Mocking type
behavior
Type: Telerik.JustMock..::..Behavior
Specifies behavior of the mock. Default is RecursiveLoose

Return Value

Mock instance

See Also