Exemple #1
0
        public static Declerations LoadFromFile(string filename)
        {
            var groupDeclerations = GroupedLineFileReader.ReadGroups(filename)
                                    .Select(CreateGroupDecleration)
                                    .ToList();

            return(new Declerations(groupDeclerations));
        }
Exemple #2
0
        public static PassportValidator LoadFromFile(string filename)
        {
            var passports = GroupedLineFileReader.ReadGroups(filename)
                            .Select(CreatePassport)
                            .ToList();

            return(new PassportValidator(passports));
        }