IsValid() public static method

public static IsValid ( Person p ) : bool
p Person
return bool
Example #1
0
 public bool CanPurchase(Person p)
 {
     if (!(PersonValidatorStatic.IsValid(p)))
     {
         throw new Exception("validation failed");
     }
     if (p.SSID != null &&
         p.SubscriptionType != null &&
         p.CreditOnFile > 0)
     {
         return(true);
     }
     return(false);
 }