Esempio n. 1
0
 private static bool Part2Validity(Passport passport)
 {
     if (!Part1Validity(passport))
     {
         return(false);
     }
Esempio n. 2
0
 private static bool Part1Validity(Passport passport)
 {
     return(new[] { passport.BirthYear, passport.ExpirationYear, passport.EyeColor, passport.HairColor, passport.Height, passport.IssueYear, passport.PassportId }.All(x => !string.IsNullOrWhiteSpace(x)));
 }