I use quartz.NET inside the project scheduler (class library) in my application, because I want other projects to be agnostic for real implementation. In the future, if I want to change the quartz for Castle Scheduler or Windows Scheduler or wathever ... I will have the opportunity to change it.
I need unit test weekly triggers on my Quartz.NET project, I started to study and found out what seemed like a cool MOLES solution at the moment, this extension basically allows me to change DateTime.Now and go to the future!
In this case, a week after the trigger was started, but after waiting a little time, it was sadly found that my triggers were not activated even when the time changed and Thread.Sleeping after a couple of minutes ...
The reason I want to go to the future is because in the application I use different methods / triggers for each type of request EG Weekly, Weekly with repetition, Monthly, Yearly
Has anyone else commented on this test?
Is there something I'm going through?
Is this possible with MOLES?
source share