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); }
public static string ToStringStandard(this ApprovalStatus status) { var standardRepresentation = ApprovalStatusHelper.ToStandardRepresentation(status); return(standardRepresentation); }
public static void ThrowWasStillPendingException(this ApprovalStatus status) { throw ApprovalStatusHelper.GetApprovalWasStillPendingException(); }