Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Tests/PersonaServiceTests.cs @ 197:bfd472758bc3
Agregando validaciones para subir el Coverage.
author | juanjose.montesdeocaarbos |
---|---|
date | Sat, 13 Aug 2011 02:40:00 -0300 |
parents | 222362c29416 |
children | a36a76bd6ec3 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/PersonaServiceTests.cs Sat Aug 13 01:52:00 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Tests/PersonaServiceTests.cs Sat Aug 13 02:40:00 2011 -0300 @@ -1,4 +1,5 @@ -using System.Linq; +using System; +using System.Linq; using AltNetHispano.Agendas.Domain; using AltNetHispano.Agendas.Domain.Repositories; using AltNetHispano.Agendas.Domain.Services; @@ -130,5 +131,15 @@ Assert.AreEqual(IdentityProviderEnum.Twitter, builtIn.IdentityProvider); Assert.AreEqual("nelo", builtIn.LogonName); } + + [Test] + public void Modificar_persona_inexistente() + { + var personaRepository = DefaultPersonaRepository; + var personaService = new PersonaService(personaRepository); + var r = personaService.Update(new Guid(), "Mariano Pauselli", "marianopauselli", "marianopauselli@gmail.com", string.Empty, null); + + Assert.IsFalse(r.Succeful); + } } } \ No newline at end of file