Interface IOccurrence
Defines occurrence for a specific call.
Namespace: Telerik.JustMock.Expectations.Abstraction
Assembly: Telerik.JustMock.dll
Syntax
public interface IOccurrence
Methods
Occurs(Int32, String)
Specifies how many times the call should occur.
Declaration
IDisposable Occurs(int numberOfTimes, string message = null)
Parameters
System.Int32
numberOfTimes
Specified number of times |
System.String
message
|
Returns
System.IDisposable
Disposable object that can be used to disable this arrangement. |
OccursAtLeast(Int32, String)
Specifies how many times at least the call should occur.
Declaration
IDisposable OccursAtLeast(int numberOfTimes, string message = null)
Parameters
System.Int32
numberOfTimes
Specified number of times |
System.String
message
|
Returns
System.IDisposable
Disposable object that can be used to disable this arrangement. |
OccursAtMost(Int32, String)
Specifies how many times maximum the call can occur.
Declaration
IDisposable OccursAtMost(int numberOfTimes, string message = null)
Parameters
System.Int32
numberOfTimes
Specified number of times |
System.String
message
|
Returns
System.IDisposable
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
System.String
message
|
Returns
System.IDisposable
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
System.String
message
|
Returns
System.IDisposable
Disposable object that can be used to disable this arrangement. |