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(); }
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(); }
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(); }
public void Activate(RoutingContext <T> context) { _rightActivation.RightActivate(context, match => _betaMemory.Activate(match)); }
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(); }