Dotnet, Development, C Sharp Programming, Csharp, Microsoft.
1, 3, 0, 0, TimeSpan.Zero); } } With that, when you use this custom time provider in your tests, and call the GetUtcNow method it will always return 3am. Task.Delay example With Time Abstraction it is also possible to easily test Timer, Task.Delay and Task.WaitAsync operations. These functions