public async Task ShouldRaiseException_WhenSendSetOption() { var eventBus = new InProcessServiceBus(); eventBus.AddDynamicRequestHandler(typeof(TestRequestData).Name, (requestData, requetContext) => { return(Task.Run(() => { throw new Exception("Test Exception"); })); }); var testRequestData = new TestRequestData() { Msg = "success" }; await eventBus.SendAsync <string>(testRequestData, new TriggerOption(false)); }