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

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

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

            return(isValid);
        }
Esempio n. 4
0
 public bool ValidateCountryId(Passport passport)
 {
     return(true);
 }