public static bool IsPassportIdCorrect(this Passport passport)
        {
            string passportId = passport.PassportInfo["pid"];

            return(Regex.IsMatch(passportId, "^[0-9]{9}$"));
        }
        public static bool IsEyeColorCorrect(this Passport passport)
        {
            string eyeColor = passport.PassportInfo["ecl"];

            return("amb blu brn gry grn hzl oth".Contains(eyeColor));
        }
        public static bool IsHairColorCorrect(this Passport passport)
        {
            string hairColor = passport.PassportInfo["hcl"];

            return(Regex.IsMatch(hairColor, "^#[0-9a-f]{6}$"));
        }
 public static bool ContainsAllMandatoryKeys(this Passport passport)
 {
     return(MandatoryKeys.TrueForAll(key => passport.PassportInfo.ContainsKey(key)));
 }