After I create a ActorSystem and a WorkerActor
I schedule some message to be sent every 5 minutes:
_actorSystem.Scheduler.ScheduleTellRepeatedly(
TimeSpan.FromSeconds(10), TimeSpan.FromMinutes(5),
workerActor, new MyMessage(), Nobody.Instance);
How would one test this using TestKit
?
I have found this article: https://petabridge.com/blog/how-to-unit-test-akkadotnet-actors-akka-testkit/
The example "How do I test scheduled messages?" at the end of the article shows how to advance the virtual time so the test not waits X minutes. Unfortunately, it actually tests that Actor sends messages on schedule not receives them.