Class MockClock
A IClock implementation whose time is provided externally, allowing the returned time to be controlled during automated testing.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeyWimey.Abstractions
Assembly: cs.temp.dll.dll
Syntax
public class MockClock : ClockBase, IClock
Properties
Name | Description |
---|---|
Now | Returns the time last provided via SetTime(DateTimeOffset, Boolean). |
Methods
Name | Description |
---|---|
SetTime(DateTimeOffset, Boolean) | Sets the |