public void When_DecisionBlock_Then_DoNotDelegateToNextProcessors() { _container.AddChained <IProcessor, BlockProcessor, ChallengeProcessor, AllowProcessor>(LifestyleType.Transient); var processor = _container.Resolve <IProcessor>(); var processedByType = processor.Process(Decision.Block); Assert.That(BlockProcessor.WasProcessed, Is.True); Assert.That(ChallengeProcessor.WasProcessed, Is.False); Assert.That(AllowProcessor.WasProcessed, Is.False); Assert.That(processedByType, Is.EqualTo(typeof(BlockProcessor))); }