Exemple #1
0
        public void find_peer()
        {
            var local = new TransportNode(channelGraph);

            var fooNode = new TransportNode {
                Id = "Foo"
            };

            theRepository.Persist(local, fooNode, new TransportNode {
                Id = "Bar"
            });

            theRepository.FindPeer("Foo")
            .ShouldBeTheSameAs(fooNode);
        }