コード例 #1
0
        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);
        }
コード例 #2
0
        public static string ToStringStandard(this OrganizationCourtStatus status)
        {
            var standardRepresentation = OrganizationCourtStatusHelper.ToStandardRepresentation(status);

            return(standardRepresentation);
        }
コード例 #3
0
 public static void ThrowWasStillPendingException(this OrganizationCourtStatus status)
 {
     throw OrganizationCourtStatusHelper.GetApprovalWasStillPendingException();
 }