Пример #1
0
 public bool EmailInput(string email)
 {
     if (_validation.CheckEmail(email))
     {
         Presenter?.SetEmailState(EState.Success);
         return(true);
     }
     Presenter?.SetEmailState(EState.Fail);
     return(false);
 }
Пример #2
0
 public void TestEmail(string email, bool isValid)
 {
     Assert.AreEqual(isValid, _validation.CheckEmail(email));
 }