Exemplo n.º 1
0
 public ActorRuntimeMock(MessageSerialization serialization = null)
 {
     System     = new ActorSystemMock(serialization);
     Timers     = new TimerServiceMock();
     Reminders  = new ReminderServiceMock();
     Activation = new ActivationServiceMock();
 }
Exemplo n.º 2
0
 public void SetUpTest()
 {
     system = new ActorSystemMock();
 }
Exemplo n.º 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)));
        }
Exemplo n.º 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)));
        }