Exemplo n.º 1
0
 public VerifyLoginForm() : base(nameof(VerifyLoginForm))
 {
     UserName = AddTextInput(nameof(UserName));
     UserName.MustNotBeNull();
     UserName.AddConstraints(new NotWhitespaceConstraint());
     UserName.MaxLength   = 100;
     Password             = AddTextInput(nameof(Password));
     Password.IsProtected = true;
     Password.MustNotBeNull();
     Password.AddConstraints(new NotWhitespaceConstraint());
     Password.MaxLength = 100;
 }