Exemplo n.º 1
0
        protected override string CutOffDate(string pesel)
        {
            var insDateFromPesel = new DateFromPesel();
            var str  = insDateFromPesel.GetPesel(pesel);
            var date = str.year + "-" + str.month + "-" + str.day;

            return(date);
        }
Exemplo n.º 2
0
        public override bool IsPeselValid(string pesel)
        {
            DateFromPesel dateFromPesel = new DateFromPesel();
            var           nice          = dateFromPesel.GetPesel(pesel);

            CutOffDate(pesel);
            return(Checksum(pesel) && ValidateDate(nice.year, nice.month, nice.day));
        }