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