예제 #1
0
 public override bool IsPeselValid(string pesel)
 {
     var myChecksum = new PeselChecksum();
     var myDate = new IsCorrectDate();
     var myDateCut = new CutDate(pesel);
     if (myChecksum.IsCorrect(pesel) &&
         myDate.isCorrectDay(myDateCut.CalculateDay(), myDateCut.CalculateMonth(), myDateCut.CalculateYear()))
     {
         return true;
     }
     return false;
 }
예제 #2
0
 protected override string CutOffDate(string pesel)
 {
     var myDateCut = new CutDate(pesel);
     return myDateCut.FormatDate();
 }