diff Agendas/trunk/src/Agendas.Tests/TestBase.cs @ 22:d6e124e5c9c4

DefaultEventoRepository en tests
author nelo@MTEySS.neluz.int
date Tue, 15 Mar 2011 06:56:02 -0300
parents c5a99dde072f
children 41b283d27e3e
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/TestBase.cs	Mon Mar 14 21:05:19 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Tests/TestBase.cs	Tue Mar 15 06:56:02 2011 -0300
@@ -1,5 +1,6 @@
 using Agendas.Repositories.Memory;
 using AltNetHispano.Agendas.Domain;
+using AltNetHispano.Agendas.Domain.Repositories;
 using Moq;
 using NUnit.Framework;
 
@@ -17,15 +18,19 @@
 			}
 		}
 
+		protected static IEventoRepository DefaultEventoRepository
+		{
+			get { return new EventoRepository(); }
+		}
+
 		[SetUp]
 		public void LimpiarEventos()
 		{
 			var repository = new EventoRepository();
-			foreach (var evento in repository.GetEventosConFecha())
+			foreach (Evento evento in repository.GetEventosConFecha())
 				repository.Delete(evento);
-			foreach (var evento in repository.GetEventosSinFecha())
+			foreach (Evento evento in repository.GetEventosSinFecha())
 				repository.Delete(evento);
 		}
-
 	}
 }
\ No newline at end of file