Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Repositories.Memory/VanRepository.cs @ 2:c03560ae4762
Test de Crud para la agenda
author | nelopauselli |
---|---|
date | Sat, 22 Jan 2011 20:21:31 -0300 |
parents | |
children | 5f007e266509 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Agendas/trunk/src/Agendas.Repositories.Memory/VanRepository.cs Sat Jan 22 20:21:31 2011 -0300 @@ -0,0 +1,15 @@ +using System; +using AltNetHispano.Agendas.Domain; +using AltNetHispano.Agendas.Domain.Repositories; + +namespace Agendas.Repositories.Memory +{ + public class VanRepository : EventoRepository, IVanRepository + { + public Van Get(Guid vanId) + { + Evento evento; + return Eventos.TryGetValue(vanId, out evento) ? evento as Van : null; + } + } +} \ No newline at end of file