Example #1
0
        public void One_more_level_of_indirection()
        {
            var junction = new JoinNode<Customer>(_constantNode);
            junction.AddSuccessor(_actionNode);

            var alphaNode = new AlphaNode<Customer>();
            alphaNode.AddSuccessor(junction);

            alphaNode.Activate(_context);

            _session.Run();

            _primaryCalled.IsCompleted.ShouldBeTrue();
        }
Example #2
0
        public void One_more_level_of_indirection()
        {
            var junction = new JoinNode <Customer>(_constantNode);

            junction.AddSuccessor(_actionNode);

            var alphaNode = new AlphaNode <Customer>();

            alphaNode.AddSuccessor(junction);

            alphaNode.Activate(_context);

            _session.Run();

            _primaryCalled.IsCompleted.ShouldBeTrue();
        }
Example #3
0
        public void Pulling_an_element_through_two_memories_should_merge_properly()
        {
            var junction = new JoinNode <Customer>(_constantNode);

            junction.AddSuccessor(_actionNode);

            var alphaNodeA = new AlphaNode <Customer>();

            alphaNodeA.AddSuccessor(junction);

            var joinJunction = new JoinNode <Customer>(alphaNodeA);

            var alphaNodeB = new AlphaNode <Customer>();

            alphaNodeB.AddSuccessor(joinJunction);

            alphaNodeA.Activate(_context);
            alphaNodeB.Activate(_context);

            _session.Run();
        }
Example #4
0
        public void Pulling_an_element_through_two_memories_should_merge_properly()
        {
            var junction = new JoinNode<Customer>(_constantNode);
            junction.AddSuccessor(_actionNode);

            var alphaNodeA = new AlphaNode<Customer>();
            alphaNodeA.AddSuccessor(junction);

            var joinJunction = new JoinNode<Customer>(alphaNodeA);

            var alphaNodeB = new AlphaNode<Customer>();
            alphaNodeB.AddSuccessor(joinJunction);

            alphaNodeA.Activate(_context);
            alphaNodeB.Activate(_context);

            _session.Run();
        }