示例#1
0
        public bool ValidateExpirationYear(Passport passport)
        {
            var isValid = passport.ExpirationYear is (>= 2020 and <= 2030);

            return(isValid);
        }
示例#2
0
        public bool ValidateBirthYear(Passport passport)
        {
            var isValid = passport.BirthYear is (>= 1920 and <= 2002);

            return(isValid);
        }
示例#3
0
        public bool ValidateIssueYear(Passport passport)
        {
            var isValid = passport.IssueYear is (>= 2010 and <= 2020);

            return(isValid);
        }
示例#4
0
 public bool ValidateCountryId(Passport passport)
 {
     return(true);
 }