public void WhenGetClientValidationRules_ThenReturnsValidationRule()
 {
     var validationRules = new PostalCodeValidatorAttribute().GetClientValidationRules(null, null).ToList();
     Assert.Equal(1, validationRules.Count());
     Assert.Equal("postalcode", validationRules[0].ValidationType);
     Assert.Equal(4, validationRules[0].ValidationParameters.Count);
 }
 public void WhenCreated_ThenImplementsIClientValidatable()
 {
     var validator = new PostalCodeValidatorAttribute();
     Assert.IsAssignableFrom<IClientValidatable>(validator);
 }