コード例 #1
0
        public void ShouldThrowExceptionIfActionIsNotSetToValidValue()
        {
            _validCommand.LatestAction = (Domain.Entities.LastAction) 99;

            Func <Task> act = async() => { await _handler.Handle(_validCommand); };

            act.ShouldThrowExactly <ValidationException>();
        }