{"action":"opened","issue":{"url":"https://api.github.com/repos/guidopj/rentauto/issues/15","labels_url":"https://api.github.com/repos/guidopj/rentauto/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/guidopj/rentauto/issues/15/comments","events_url":"https://api.github.com/repos/guidopj/rentauto/issues/15/events","html_url":"https://github.com/guidopj/rentauto/issues/15","id":105926960,"number":15,"title":"Generador de código de validación","user":{"login":"aitrusgit","id":819334,"avatar_url":"https://avatars.githubusercontent.com/u/819334?v=3","gravatar_id":"","url":"https://api.github.com/users/aitrusgit","html_url":"https://github.com/aitrusgit","followers_url":"https://api.github.com/users/aitrusgit/followers","following_url":"https://api.github.com/users/aitrusgit/following{/other_user}","gists_url":"https://api.github.com/users/aitrusgit/gists{/gist_id}","starred_url":"https://api.github.com/users/aitrusgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitrusgit/subscriptions","organizations_url":"https://api.github.com/users/aitrusgit/orgs","repos_url":"https://api.github.com/users/aitrusgit/repos","events_url":"https://api.github.com/users/aitrusgit/events{/privacy}","received_events_url":"https://api.github.com/users/aitrusgit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/guidopj/rentauto/labels/observaci%C3%B3n","name":"observación","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/guidopj/rentauto/milestones/1","html_url":"https://github.com/guidopj/rentauto/milestones/Entrega%201","labels_url":"https://api.github.com/repos/guidopj/rentauto/milestones/1/labels","id":1299297,"number":1,"title":"Entrega 1","description":"","creator":{"login":"aitrusgit","id":819334,"avatar_url":"https://avatars.githubusercontent.com/u/819334?v=3","gravatar_id":"","url":"https://api.github.com/users/aitrusgit","html_url":"https://github.com/aitrusgit","followers_url":"https://api.github.com/users/aitrusgit/followers","following_url":"https://api.github.com/users/aitrusgit/following{/other_user}","gists_url":"https://api.github.com/users/aitrusgit/gists{/gist_id}","starred_url":"https://api.github.com/users/aitrusgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitrusgit/subscriptions","organizations_url":"https://api.github.com/users/aitrusgit/orgs","repos_url":"https://api.github.com/users/aitrusgit/repos","events_url":"https://api.github.com/users/aitrusgit/events{/privacy}","received_events_url":"https://api.github.com/users/aitrusgit/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":0,"state":"open","created_at":"2015-09-10T12:30:45Z","updated_at":"2015-09-11T01:08:59Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-09-11T01:08:59Z","updated_at":"2015-09-11T01:08:59Z","closed_at":null,"body":"Así como hoy por hoy su servicio depende solamente de la interfaz de _IEnviadorDeMails_ y para los tests proveemos una implementación mock ustedes podrían fácilmente abstraer la generación del código de validación en algún otro objecto del cual el servicio solo dependa.\r\n\r\nPara los tests podrían inyectarle una implementación que solo haga esto:\r\n\r\n````xtend\r\nclass GeneradorCodigoDummy implements GenerdorCodigo {\r\n    def generarCodigo(Usuario usuario) {\r\n        return usuario.nombre_de_usuario + \"1357\";\r\n    }\r\n}\r\n````\r\n\r\nY en su servicio ustedes no tendrían mas código dumy :)"}}