public AsyncTestKitHelper(TestKitBase akkaTestKit) { _akkaTestKit = akkaTestKit; var actorSystem = akkaTestKit.Sys; IdleOrActive = MultiDispatcherAwaiter.CreateFromActorSystem(actorSystem); TestScheduler = actorSystem.Scheduler as TestScheduler; }
/// <summary> /// Await the returned Task in order to wait for the ActorSystem to become Active. Needed only when an asynchronous action should active the system. /// Not needed when performing a Tell or Ask, or when FastForwarding the test scheduler /// </summary> public static Task Active(this ActorSystem actorSystem) => MultiDispatcherAwaiter.CreateFromActorSystem(actorSystem).Active();