コード例 #1
0
        ActorRef IActorSystem.ActorOf(ActorPath path)
        {
            if (expected.ContainsKey(path))
                return expected[path];

            if (unexpected.ContainsKey(path))
                return unexpected[path];

            var stub = new ActorRefStub(path);
            unexpected.Add(path, stub);

            return stub;
        }
コード例 #2
0
        ActorRef IActorSystem.ActorOf(ActorPath path)
        {
            if (expected.ContainsKey(path))
            {
                return(expected[path]);
            }

            if (unexpected.ContainsKey(path))
            {
                return(unexpected[path]);
            }

            var stub = new ActorRefStub(path);

            unexpected.Add(path, stub);

            return(stub);
        }
コード例 #3
0
 public void SetUp()
 {
     stub = new ActorRefStub(ActorPath.From("mock::" + Guid.NewGuid().ToString("D")));
 }
コード例 #4
0
 public void SetUp()
 {
     stub = new ActorRefStub(ActorPath.From(typeof(TestActor), Guid.NewGuid().ToString("D")));
 }