Created
December 19, 2017 04:48
-
-
Save Adrianvdh/89d433c671f07fa5506a5868d6a02b0d to your computer and use it in GitHub Desktop.
Tdd examples from http://scholarcoder.com/1392/ttd-intro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UserService { | |
private UserRepository userRepository; | |
public UserService(UserRepository userRepository) { | |
this.userRepository = userRepository; | |
} | |
public User authenticate(String username, String password) { | |
User foundUser = userRepository.findByUsername(username) | |
return foundUser; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment