diff Agendas/trunk/src/Agendas.Tests/Cruds/EventoTests.cs @ 94:db4b1e2cae49

Cambio del nombre de la clase Ponente a Persona Se agrega la clase Cuenta para identificar cada una de las cuentas con que se puede autenticar una persona Alta Automatica de cuentas de twitter creando la persona
author Nelo@Kenia.neluz.int
date Sat, 04 Jun 2011 12:11:17 -0300
parents 963b71ea6028
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/Cruds/EventoTests.cs	Sat Jun 04 00:07:20 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Tests/Cruds/EventoTests.cs	Sat Jun 04 12:11:17 2011 -0300
@@ -17,7 +17,7 @@
 		public void BorrarRepositorios()
 		{
 			EventoRepository.Clear();
-			PonenteRepository.Clear();
+			PersonaRepository.Clear();
 		}
 
 		[SetUp]
@@ -25,13 +25,13 @@
 		{
 			var seguridad = new Mock<ISeguridad>();
 			seguridad.Setup(s => s.GetUserName()).Returns("neluz");
-			IdentityContext.Current = seguridad.Object;
+			IdentityContext.Init(seguridad.Object, new PersonaRepository());
 		}
 
 		[SetUp]
 		public void CreateCrud()
 		{
-			_eventoCrud = new EventoCrud(() => new EventoRepository(), ()=>new PonenteRepository(), () => new Mock<IDisposable>().Object);
+			_eventoCrud = new EventoCrud(() => new EventoRepository(), ()=>new PersonaRepository(), () => new Mock<IDisposable>().Object);
 		}
 
 		#endregion