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

			var memoryA = new BetaMemory<Customer>(junction);

			memoryA.Activate(_context);

			_agenda.Execute();

			_context.VerifyAllExpectations();
		}
        public void FirstTestName()
        {
            var junction = new JoinNode<Customer>(_constantNode);
            junction.AddSuccessor(_actionNode);

            var memoryA = new BetaMemory<Customer>(junction);

            memoryA.Activate(_context);

            _session.Run();

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

            junction.AddSuccessor(_actionNode);

            var memoryA = new BetaMemory <Customer>(junction);

            memoryA.Activate(_context);

            _agenda.Execute();

            _context.VerifyAllExpectations();
        }
Exemple #4
0
        public void FirstTestName()
        {
            var junction = new JoinNode <Customer>(_constantNode);

            junction.AddSuccessor(_actionNode);

            var memoryA = new BetaMemory <Customer>(junction);

            memoryA.Activate(_context);

            _session.Run();

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

            junction.AddSuccessor(_actionNode);

            var memoryB = new BetaMemory <Customer>(junction);

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

            var memoryA = new BetaMemory <Customer>(joinJunction);

            memoryA.Activate(_context);
            memoryB.Activate(_context);

            _agenda.Execute();

            _context.VerifyAllExpectations();
        }
Exemple #6
0
 public void Activate(RoutingContext <T> context)
 {
     _rightActivation.RightActivate(context, match => _betaMemory.Activate(match));
 }
Exemple #7
0
		public void Pulling_an_element_through_two_memories_should_merge_properly()
		{
			var junction = new JoinNode<Customer>(_constantNode);
			junction.AddSuccessor(_actionNode);

			var memoryB = new BetaMemory<Customer>(junction);

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

			var memoryA = new BetaMemory<Customer>(joinJunction);

			memoryA.Activate(_context);
			memoryB.Activate(_context);

			_agenda.Execute();

			_context.VerifyAllExpectations();
		}