Exemplo n.º 1
0
        /// <summary>
        /// Ensures an <see cref="ApprovalStatus"/> is not <see cref="ApprovalStatus.Pending"/>.
        /// </summary>
        public static void EnsureIsNotPending(this ApprovalStatus status)
        {
            var isPending = status.IsPending();

            if (isPending)
            {
                status.ThrowWasStillPendingException();
            }
        }
Exemplo n.º 2
0
        public static bool IsDecided(this ApprovalStatus status)
        {
            var isDecided = !status.IsPending();

            return(isDecided);
        }