Example #1
0
        public void should_fail_dispatch_if_dispatching_to_an_handler_that_does_not_start_its_task()
        {
            _messageDispatcher.LoadMessageHandlerInvokers();

            var command = new AsyncDoNotStartTaskCommand();

            Dispatch(command);

            _dispatchResult.ShouldNotBeNull();
            _dispatchResult.Errors.Count().ShouldEqual(1);
        }