public void Validate() { RequestValidator.RequiredField("zip code", _zipCode); RequestValidator.Match("zip code", _zipCode, @"^\d{5}(?:[-\s]\d{4})?$"); }
public void Validate() { RequestValidator.RequiredField("zip code", _zipCode); RequestValidator.Match("zip code", _zipCode, @"^\d{5}(?:[-\s]\d{4})?$"); }