public void should_fail_dispatch_if_dispatching_to_an_handler_that_does_not_start_its_task() { _messageDispatcher.LoadMessageHandlerInvokers(); var command = new AsyncDoNotStartTaskCommand(); var result = DispatchAndWaitForCompletion(command); result.Errors.Count.ShouldEqual(1); }
public void should_fail_dispatch_if_dispatching_to_an_handler_that_does_not_start_its_task() { _messageDispatcher.LoadMessageHandlerInvokers(); var command = new AsyncDoNotStartTaskCommand(); Dispatch(command); _dispatchResultRef.ShouldNotBeNull(); _dispatchResultRef.Value.Errors.Count().ShouldEqual(1); }