Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Tests/TestBase.cs @ 24:41b283d27e3e
Ponentes como entidad
Agenda no es una entidad persistente (por ahora)
author | nelo@MTEySS.neluz.int |
---|---|
date | Tue, 15 Mar 2011 07:49:53 -0300 |
parents | d6e124e5c9c4 |
children | 475be11edf56 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/TestBase.cs Tue Mar 15 06:57:58 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Tests/TestBase.cs Tue Mar 15 07:49:53 2011 -0300 @@ -23,14 +23,21 @@ get { return new EventoRepository(); } } + protected static IPonenteRepository DefaultPonenteRepository + { + get { return new PonenteRepository(); } + } + [SetUp] public void LimpiarEventos() { - var repository = new EventoRepository(); - foreach (Evento evento in repository.GetEventosConFecha()) - repository.Delete(evento); - foreach (Evento evento in repository.GetEventosSinFecha()) - repository.Delete(evento); + EventoRepository.Clear(); + } + + [SetUp] + public void LimpiarPonentes() + { + PonenteRepository.Clear(); } } } \ No newline at end of file