예제 #1
0
 public bool PhoneNumberInput(string phoneNumber)
 {
     if (_validation.CheckPhoneNumber(phoneNumber))
     {
         Presenter?.SetPhoneNumberState(EState.Success);
         return(true);
     }
     Presenter?.SetPhoneNumberState(EState.Fail);
     return(false);
 }
예제 #2
0
 public void TestPhoneNumber(string phoneNumber, bool isValid)
 {
     Assert.AreEqual(isValid, _validation.CheckPhoneNumber(phoneNumber));
 }