Пример #1
0
 public void ShouldNotRegisterUserWhenEmailIsNull()
 {
     var user = new User("Kevin", "", "123456");
     Assert.AreEqual(false, user.RegisterScopeIsValid("123456"));
 }
Пример #2
0
 public void ShouldRegister()
 {
     var user = new User("Kevin Allen", "*****@*****.**", "123456");
     Assert.AreEqual(true, user.RegisterScopeIsValid("123456"));
 }
Пример #3
0
 public void RegisterScopeIsInvalidWhenNameIsNull()
 {
     var user = new User("", "*****@*****.**", "123456");
     Assert.AreEqual(false, user.RegisterScopeIsValid("123456"));
 }