예제 #1
0
 public User Constructor(string name)
 {
     User target = new User(name);
     return target;
     // TODO: add assertions to method UserTest.Constructor(String)
 }
예제 #2
0
 /// <summary>
 /// Checks the users login info and tells if they are correct
 /// 
 /// IMPORTANT: THIS METHOD IS NOT FINISHED!!! IT DOES AT THE CURRENT MOMENT
 /// NOT CHECK THE USERS INPUT!!!
 /// 
 /// </summary>
 /// <param name="userName">The users usersname</param>
 /// <param name="password">The users password</param>
 /// <returns>If the info is valid to an account of the system</returns>
 private bool ValidLogin(string userName, string password)
 {
     _user = new User(userName);
     return true;
 }