Ejemplo n.º 1
0
 public void AddUser(string username, string password, EmployeeBase employeeType)
 {
     if (CheckIfExist(username))
     {
         throw new UserAlreadyExistException(username);
     }
     else
     {
         _users.Add(new User(username, password, employeeType));
     }
 }
Ejemplo n.º 2
0
 public User(string username, string password, EmployeeBase employeeType)
 {
     Username          = username;
     PasswordValidator = new PasswordValidator(password);
     EmployeeType      = employeeType;
 }