Beispiel #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;
        }
Beispiel #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);
        }
Beispiel #3
0
 public void SetUp()
 {
     stub = new ActorRefStub(ActorPath.From("mock::" + Guid.NewGuid().ToString("D")));
 }
 public void SetUp()
 {
     stub = new ActorRefStub(ActorPath.From(typeof(TestActor), Guid.NewGuid().ToString("D")));
 }