コード例 #1
0
        public void Should_resolve_a_destination_address()
        {
            Registry.Send(new A
            {
                Name = "bob"
            }, msg =>
            {
                msg.DestinationAddress = new ActorUrn(ActorId);
            });

            ReceivedA.WaitUntilCompleted(2.Seconds()).ShouldBeTrue();
        }
コード例 #2
0
        public void Should_allow_selection_of_a_remote_actor()
        {
            Registry.Select(new ActorUrn(Address, ActorId), actor =>
            {
                actor.Send(new A
                {
                    Name = "bob"
                });
            }, () => {});

            ReceivedA.WaitUntilCompleted(2.Seconds()).ShouldBeTrue();
        }