Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Repositories.Memory/EventoRepository.cs @ 62:c40b97bbed01
Verificando persistencia de Ponentes y Tracks en tests de CRUD
author | nelopauselli |
---|---|
date | Tue, 17 May 2011 01:55:19 -0300 |
parents | 65bbcdd5d357 |
children | db4b1e2cae49 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Repositories.Memory/EventoRepository.cs Tue May 17 01:27:03 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Repositories.Memory/EventoRepository.cs Tue May 17 01:55:19 2011 -0300 @@ -15,10 +15,12 @@ public void Delete(Evento evento) { + if (evento.Ponente != null) + evento.Ponente.RemoveEvento(evento); Objects.Remove(evento.Id); } - public Evento Get(Guid vanId) + public Evento Get(Guid vanId) { Evento evento; return Objects.TryGetValue(vanId, out evento) ? evento : null;