/// <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(); } }
public static bool IsDecided(this ApprovalStatus status) { var isDecided = !status.IsPending(); return(isDecided); }