public bool NameInput(string name) { if (_validation.CheckName(name)) { Presenter?.SetNameState(EState.Success); return(true); } Presenter?.SetNameState(EState.Fail); return(false); }
public void TestName(string name, bool isValid) { Assert.AreEqual(isValid, _validation.CheckName(name)); }