public ActorRuntimeMock(MessageSerialization serialization = null) { System = new ActorSystemMock(serialization); Timers = new TimerServiceMock(); Reminders = new ReminderServiceMock(); Activation = new ActivationServiceMock(); }
public void SetUpTest() { system = new ActorSystemMock(); }
public static ActorRefMock <TActor> MockTypedActorOf <TActor>(this ActorSystemMock system, string id) where TActor : IActor { var path = typeof(TActor).ToActorPath(id); return(new ActorRefMock <TActor>(system.MockActorOf(path))); }
public static ActorRefMock <TActor> MockTypedActorOf <TActor>(this ActorSystemMock system, string id) where TActor : IActorGrain, IGrainWithStringKey { var path = ActorPath.For(typeof(TActor), id); return(new ActorRefMock <TActor>(system.MockActorOf(path))); }