public static User Create(string username, string password) { var user = new User() { Username = username, PasswordHash = password }; return user; }
public bool AutenticateUser() { var user = new User(); user.Username = "******"; user.PasswordHash = Password; var userRepository = Container.Resolve<ILoginService>(); userRepository.AuthenticateUser(Username, Password); return Password == "Secret"; }
public UserDto(User user) { Username = user.Username; Password = user.PasswordHash; Id = user.Id; }