Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Tests/PulicarTests.cs @ 22:d6e124e5c9c4
DefaultEventoRepository en tests
author | nelo@MTEySS.neluz.int |
---|---|
date | Tue, 15 Mar 2011 06:56:02 -0300 |
parents | 43360bf09b1a |
children | a85674a7aa7a |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/PulicarTests.cs Mon Mar 14 21:05:19 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Tests/PulicarTests.cs Tue Mar 15 06:56:02 2011 -0300 @@ -15,9 +15,8 @@ public void Publicar_van_con_usuario_autenticado() { var publicador = new Mock<IPublicador>(); - var repository = new EventoRepository(); - var agenda = new Agenda(publicador.Object, null, SeguridadServiceDefault, repository); + var agenda = new Agenda(publicador.Object, null, SeguridadServiceDefault, DefaultEventoRepository); var van = EventoObjectMother.GetVanValidaParaPublicar(); @@ -121,7 +120,7 @@ [Test] public void Publicar_y_modificar_van() { - var repository = new EventoRepository(); + var repository = DefaultEventoRepository; var agenda = new Agenda(null, null, SeguridadServiceDefault, repository);