justmock-docs/api/m_telerik_justmock_mock_cre...

2.1 KiB

title page_title description previous_url slug published fullPath category
Create(T) Method (Constructor) Create(T) Method (Constructor) | JustMock Documentation Documentation page about Create(T) Method (Constructor). /m_telerik_justmock_mock_create__1_7.html m_telerik_justmock_mock_create__1_7 True api/n_telerik_justmock/t_telerik_justmock_mock/methods_t_telerik_justmock_mock/overload_telerik_justmock_mock_create/m_telerik_justmock_mock_create__1_7 api

Mock.Create<T>Method (Constructor)

Creates a mocked instance from a given type with RecursiveLoose behavior.

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

Syntax

C#
public static T Create<T>(
	Constructor constructor
)
Visual Basic
Public Shared Function Create(Of T) ( _
	constructor As Constructor _
) As T

constructor

Type: Telerik.JustMock.Constructor
Specifies whether to call the base constructor

Type Parameters

T

Target type

Mock instance

See Also

Mock Class

Mock Members

Create Overload

Telerik.JustMock Namespace