Interface
IOccurrence

Defines occurrence for a specific call.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction

Assembly:Telerik.JustMock.dll

Syntax:

cs-api-definition
public interface IOccurrence

Methods

Occurs(int, string)

Specifies how many times the call should occur.

Declaration

cs-api-definition
IDisposable Occurs(int numberOfTimes, string message = null)

Parameters

numberOfTimes

int

Specified number of times

message

string

Returns

IDisposable

Disposable object that can be used to disable this arrangement.

OccursAtLeast(int, string)

Specifies how many times at least the call should occur.

Declaration

cs-api-definition
IDisposable OccursAtLeast(int numberOfTimes, string message = null)

Parameters

numberOfTimes

int

Specified number of times

message

string

Returns

IDisposable

Disposable object that can be used to disable this arrangement.

OccursAtMost(int, string)

Specifies how many times maximum the call can occur.

Declaration

cs-api-definition
IDisposable OccursAtMost(int numberOfTimes, string message = null)

Parameters

numberOfTimes

int

Specified number of times

message

string

Returns

IDisposable

Disposable object that can be used to disable this arrangement.

OccursNever(string)

Specifies that the call must never occur.

Declaration

cs-api-definition
IDisposable OccursNever(string message = null)

Parameters

message

string

Returns

IDisposable

Disposable object that can be used to disable this arrangement.

OccursOnce(string)

Specifies that the call must occur once.

Declaration

cs-api-definition
IDisposable OccursOnce(string message = null)

Parameters

message

string

Returns

IDisposable

Disposable object that can be used to disable this arrangement.