예제 #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();
            }
        }
예제 #2
0
        public static bool IsDecided(this ApprovalStatus status)
        {
            var isDecided = !status.IsPending();

            return(isDecided);
        }