Example #1
0
        private void OnError(ErrorMessage errorMessage)
        {
            this.LastError = errorMessage.Message;
            this.LastErrorCode = errorMessage.ErrorCode;

            if (this.LastErrorCode == ErrorCode.OrderRejected)
            {
                this.State = OrderState.Rejected;
            }

            this.OrderChanged(this, new OrderChangedEventArgs{Order = this});
        }
 public ExpectedDomainExceptionAttribute(ErrorCode errorCode)
 {
     this.errorCode = errorCode;
 }