internal static void ShorterThan(decimal?value, int minValue, string parameterName)
 {
     if (value.HasValue && value.Value < minValue)
     {
         throw new DomainException(DomainPreconditionMessages.GetShorterThan(minValue, parameterName));
     }
 }
 public static void ShorterThan(int value, int minValue, string parameterName)
 {
     if (minValue > value)
     {
         throw new DomainException(DomainPreconditionMessages.GetShorterThan(minValue, parameterName));
     }
 }