May 12, 2022
I found in the end it was a matter of refactoring my particular case to accept the DateTime as an argument (i.e. one can imagine a "from" or "to" time parameter). Then no mocking is needed, you simply set the time(s) you want when you arrange your test. As an aside, that Pose library seems insanely cool with huge potential, it's a shame it appears to somewhat stalled currently.