Exemplo n.º 1
0
        public IssueStatuses Handle(IssueStatuses status)
        {
            if (_nextHandler == null)
            {
                throw new ArgumentException($"Status {status} is not processable");
            }

            return(status == ProcessableStatus ?
                   _nextHandler.ProcessableStatus :
                   _nextHandler.Handle(status));
        }
Exemplo n.º 2
0
 public IssueStatuses HandleStatus(IssueStatuses status)
 {
     return(_initialStatusHandler.Handle(status));
 }