Esempio n. 1
0
 private void ValidateEnrollment()
 {
     string[] LineOfMessage = txtMessage.Text.Split(' ');
     if (ValidatorOfEnrollment.IsCorrectSeparationOfEnrollmentMessageWithSpace(LineOfMessage))
     {
         ValidateEnrollmentWithSpace(LineOfMessage);
     }
     else
     {
         ValidateEnrollmentWithoutSpace(LineOfMessage);
     }
 }
Esempio n. 2
0
 private void ValidateFormatOfEnrollmentWithSpace()
 {
     string[] Line = txtEnrollment.Text.Split(' ');
     if (Line.Length == 2 && ValidatorOfEnrollment.IsCorrectSeparationOfEnrollmentMessageWithSpace(Line))
     {
         if (ValidatorOfEnrollment.ValidateFormatOfEnrollment(Line[0] + Line[1]))
         {
             ValidateRepeatEnrollment(Line[0], Line[1]);
         }
         else
         {
             SetMessage("El formato de la matrícula no es válido.");
         }
     }
     else
     {
         ValidateFormatOfEnrollmentWithoutSpace(Line);
     }
 }
Esempio n. 3
0
 public void ValidateSeparationOfEnrollmentMessageWithSpaceLineZeroLessThanThree()
 {
     string[] Line = new string[] { "SV", "2343", "60" };
     Assert.AreEqual(false, Validator.IsCorrectSeparationOfEnrollmentMessageWithSpace(Line));
 }