Telerik® JustMock™ by Progress

Specifies the arrangements to make before the mock is injected.

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


public static IBindingOnSyntax<T> AndArrange<T>(
	this IBindingOnSyntax<T> builder,
	Action<T> arrangeActions
Visual Basic
<ExtensionAttribute> _
Public Shared Function AndArrange(Of T) ( _
	builder As IBindingOnSyntax(Of T), _
	arrangeActions As Action(Of T) _
) As IBindingOnSyntax(Of T)


Type: IBindingOnSyntax<(Of <(<'T>)>)>
The fluent syntax.
Type: System..::..Action<(Of <(<'T>)>)>
A delegate that contains the arrangements to make. Usually, it will contain a series of Mock.Arrange statements for the necessary arrangements and expectations.

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