Example #1
0
 public ActorRuntimeMock(MessageSerialization serialization = null)
 {
     System     = new ActorSystemMock(serialization);
     Timers     = new TimerServiceMock();
     Reminders  = new ReminderServiceMock();
     Activation = new ActivationServiceMock();
 }
 public void SetUpTest()
 {
     system = new ActorSystemMock();
 }
Example #3
0
        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)));
        }
Example #4
0
        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)));
        }