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; }
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); }
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"))); }