Exemple #1
0
        public void SetStatusFromAuthorizations()
        {
            if (Authorizations.All(a => a.Status == AuthorizationStatus.Valid))
            {
                SetStatus(OrderStatus.Ready);
            }

            if (Authorizations.Any(a => a.Status.IsInvalid()))
            {
                SetStatus(OrderStatus.Invalid);
            }
        }