diff Agendas/trunk/src/Agendas.Tests/Cruds/PersonaCrud.cs @ 219:b9850b647a4e

Agregando alta de ponente durante la carga del evento
author nelopauselli
date Thu, 08 Sep 2011 11:22:10 -0300
parents a36a76bd6ec3
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/Cruds/PersonaCrud.cs	Thu Sep 08 09:38:47 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Tests/Cruds/PersonaCrud.cs	Thu Sep 08 11:22:10 2011 -0300
@@ -24,15 +24,21 @@
 
 		public Guid CreateAdministrador()
 		{
+			Guid id;
 			using (_requestEmulator.Invoke())
 			{
-				_personaService.Add("Nelo Pauselli", "nelopauselli", "nelopauselli@gmail.com", "http://nelopauselli.blogspot.com", null);
+				var r = _personaService.Add("Nelo Pauselli", "nelopauselli", "nelopauselli@gmail.com", "http://nelopauselli.blogspot.com", null);
+				Assert.AreEqual("Nelo Pauselli", r.Nombre);
+				Assert.AreNotEqual(Guid.Empty, r.Id);
+
+				id = r.Id;
 			}
 
 			using (_requestEmulator.Invoke())
 			{
 				var persona = _personaRepository.GetByNombre("Nelo Pauselli");
 				Assert.IsNotNull(persona);
+				Assert.AreEqual(id, persona.Id);
 				return persona.Id;
 			}
 		}