Пример #1
0
        public void record_ownership_to_this_node_singular()
        {
            var local = new TransportNode(channelGraph);

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

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

            var subject = "foo://1".ToUri();

            theRepository.AddOwnershipToThisNode(subject);

            local.OwnedTasks.ShouldContain(subject);
        }