public void When_Finding_A_Handler_That_Has_Dependencies() { _pipeline = _pipelineBuilder.Build(new RequestContext()).First(); // _should_return_the_command_handler_as_the_implicit_handler _pipeline.Should().BeOfType <MyDependentCommandHandler>(); // _should_be_the_only_element_in_the_chain TracePipeline().ToString().Should().Be("MyDependentCommandHandler|"); }
public void it_should_return_the_my_command_handler_as_the_implicit_handler() { pipeline.Should().BeAssignableTo <TestCommandHandler>(); }