Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static string ToStringStandard(this ApprovalStatus status)
        {
            var standardRepresentation = ApprovalStatusHelper.ToStandardRepresentation(status);

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