public static ArgumentException GetApprovalWasStillPendingException(string argumentName = Strings.Empty) { var message = OrganizationCourtStatusHelper.GetApprovalWasStillPendingExceptionMessage(); var argumentNameIsNotEmpty = Strings.IsNotEmpty(argumentName); var exception = argumentNameIsNotEmpty ? new ArgumentException(message, argumentName) : new ArgumentException(message); return(exception); }
public static string ToStringStandard(this OrganizationCourtStatus status) { var standardRepresentation = OrganizationCourtStatusHelper.ToStandardRepresentation(status); return(standardRepresentation); }
public static void ThrowWasStillPendingException(this OrganizationCourtStatus status) { throw OrganizationCourtStatusHelper.GetApprovalWasStillPendingException(); }