Beispiel #1
0
        public static ArgumentException GetApprovalWasStillPendingException(string argumentName = Strings.Empty)
        {
            var message = ApprovalStatusHelper.GetApprovalWasStillPendingExceptionMessage();

            var argumentNameIsNotEmpty = Strings.IsNotEmpty(argumentName);

            var exception = argumentNameIsNotEmpty
                ? new ArgumentException(message, argumentName)
                : new ArgumentException(message);

            return(exception);
        }
Beispiel #2
0
        public static string ToStringStandard(this ApprovalStatus status)
        {
            var standardRepresentation = ApprovalStatusHelper.ToStandardRepresentation(status);

            return(standardRepresentation);
        }
Beispiel #3
0
 public static void ThrowWasStillPendingException(this ApprovalStatus status)
 {
     throw ApprovalStatusHelper.GetApprovalWasStillPendingException();
 }