public void Simple_Set_Of_Behaviors() { var behaviors = new PipelinedBehavior[] { new Behavior1(), new Behavior2() }; var pipeline = PipelinedBehavior.CompileMessageHandlerPipeline(behaviors); pipeline.Invoke(null); Assert.AreEqual(2, Assert.Counter); }
public void MustCallNext() { var behaviors = new PipelinedBehavior[] { new Behavior1(), new BadBehavior(), new Behavior2() }; var pipeline = PipelinedBehavior.CompileMessageHandlerPipeline(behaviors); pipeline.Invoke(null); Assert.AreEqual(2, Assert.Counter); }
public void MustCallNext() { var behaviors = new PipelinedBehavior[] { new Behavior1(), new BadBehavior(), new Behavior2() }; var pipeline = PipelinedBehavior.CompileMessageHandlerPipeline(behaviors); pipeline.Invoke(null); Assert.AreEqual(2, Assert.Counter); }
public void Simple_Set_Of_Behaviors() { var behaviors = new PipelinedBehavior[] { new Behavior1(), new Behavior2() }; var pipeline = PipelinedBehavior.CompileMessageHandlerPipeline(behaviors); pipeline.Invoke(null); Assert.AreEqual(2, Assert.Counter); }