public bool ValidateExpirationYear(Passport passport) { var isValid = passport.ExpirationYear is (>= 2020 and <= 2030); return(isValid); }
public bool ValidateBirthYear(Passport passport) { var isValid = passport.BirthYear is (>= 1920 and <= 2002); return(isValid); }
public bool ValidateIssueYear(Passport passport) { var isValid = passport.IssueYear is (>= 2010 and <= 2020); return(isValid); }
public bool ValidateCountryId(Passport passport) { return(true); }