InterfaceIOccurrence
Defines occurrence for a specific call.
Definition
Namespace:Telerik.JustMock.Expectations.Abstraction
Assembly:Telerik.JustMock.dll
Syntax:
public interface IOccurrence
Methods
Occurs(int, string)
Specifies how many times the call should occur.
Declaration
IDisposable Occurs(int numberOfTimes, string message = null)
Parameters
numberOfTimes
Specified number of times
message
Returns
Disposable object that can be used to disable this arrangement.
OccursAtLeast(int, string)
Specifies how many times at least the call should occur.
Declaration
IDisposable OccursAtLeast(int numberOfTimes, string message = null)
Parameters
numberOfTimes
Specified number of times
message
Returns
Disposable object that can be used to disable this arrangement.
OccursAtMost(int, string)
Specifies how many times maximum the call can occur.
Declaration
IDisposable OccursAtMost(int numberOfTimes, string message = null)
Parameters
numberOfTimes
Specified number of times
message
Returns
Disposable object that can be used to disable this arrangement.
OccursNever(string)
Specifies that the call must never occur.
Declaration
IDisposable OccursNever(string message = null)
Parameters
message
Returns
Disposable object that can be used to disable this arrangement.
OccursOnce(string)
Specifies that the call must occur once.
Declaration
IDisposable OccursOnce(string message = null)
Parameters
message
Returns
Disposable object that can be used to disable this arrangement.