Пример #1
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)));
        }
Пример #2
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)));
        }