Telerik® JustMock™ by Progress

Specifies that the binding should be considered only when injecting into a constructor parameter with the given name.

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


public static IBindingInNamedWithOrOnSyntax<T> InjectedIntoParameter<T>(
	this IBindingWhenSyntax<T> builder,
	string parameterName
Visual Basic
<ExtensionAttribute> _
Public Shared Function InjectedIntoParameter(Of T) ( _
	builder As IBindingWhenSyntax(Of T), _
	parameterName As String _
) As IBindingInNamedWithOrOnSyntax(Of T)


Type: IBindingWhenSyntax<(Of <(<'T>)>)>
The fluent syntax.
Type: System..::..String
The name of the constructor parameter.

Type Parameters

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 IBindingWhenSyntax<(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