Akka.Tests.Routing.ConsistentHashingRouterSpec.Consistent_hashing_group_router_must_select_destination_based_on_consistent_hash_key_of_message C# (CSharp) Метод

Consistent_hashing_group_router_must_select_destination_based_on_consistent_hash_key_of_message() приватный Метод

        public void Consistent_hashing_group_router_must_select_destination_based_on_consistent_hash_key_of_message()
        {
            _router3.Tell(new Msg("a", "A"));
            var destinationA = ExpectMsg<IActorRef>();
            _router3.Tell(new ConsistentHashableEnvelope("AA", "a"));
            ExpectMsg(destinationA);

            _router3.Tell(new Msg(17, "A"));
            var destinationB = ExpectMsg<IActorRef>();
            _router3.Tell(new ConsistentHashableEnvelope("BB", 17));
            ExpectMsg(destinationB);

            _router3.Tell(new Msg(new MsgKey("c"), "C"));
            var destinationC = ExpectMsg<IActorRef>();
            _router3.Tell(new ConsistentHashableEnvelope("CC", new MsgKey("c")));
            ExpectMsg(destinationC);
        }