public async Task BothSuccessExecutionTest() { // arrange var configuration = new Dictionary <string, IHandlerBehavior> { { "Foo", new HandlerBehavior() }, { "Bar", new HandlerBehavior() }, }; _kernel.Bind <IHandler <string> >().To <FooHandler>().Named("Foo"); _kernel.Bind <IHandler <string> >().To <BarHandler>().Named("Bar"); _pipeline.Configure(configuration); // act var result = await _pipeline.Execute(new HandleContext <string>("Foo and Bar")).ConfigureAwait(false); // assert result.Success.Should().BeTrue(); }