Telerik® JustMock™ by Progress

Indicates that the service should be mocked. The mock is activated in the singleton scope.

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

Syntax

C#
public static IBindingWhenInNamedWithOrOnSyntax<T> ToMock<T>(
	this IBindingToSyntax<T> builder
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function ToMock(Of T) ( _
	builder As IBindingToSyntax(Of T) _
) As IBindingWhenInNamedWithOrOnSyntax(Of T)

Parameters

builder
Type: IBindingToSyntax<(Of <(<'T>)>)>
The fluent syntax.

Type Parameters

T
The service type.

Return Value

The fluent syntax.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IBindingToSyntax<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also