comparison Agendas/trunk/src/Agendas.Tests/TrackTests.cs @ 109:6bd9be78caa0

Merge
author Nelo@Kenia.neluz.int
date Tue, 07 Jun 2011 23:21:07 -0300
parents 80c22175c9b5
children 0bca45e1e664
comparison
equal deleted inserted replaced
108:786a90e26c9b 109:6bd9be78caa0
16 var repository = DefaultEventoRepository; 16 var repository = DefaultEventoRepository;
17 17
18 var agenda = new Agenda(null, repository, DefaultPersonaRepository); 18 var agenda = new Agenda(null, repository, DefaultPersonaRepository);
19 19
20 var fecha = DateTime.Now.AddDays(5); 20 var fecha = DateTime.Now.AddDays(5);
21 agenda.Agendar("Html 5", "jjmontes", fecha, urlInvitacion); 21 agenda.Agendar("Html 5", "jjmontes", fecha, urlInvitacion, TipoEvento.Van);
22 var evento = repository.GetEventosConFecha().First(); 22 var evento = repository.GetEventosConFecha().First();
23 23
24 Assert.AreEqual(1, evento.Tracks.Count()); 24 Assert.AreEqual(1, evento.Tracks.Count());
25 var ultimo = evento.Tracks.Last(); 25 var ultimo = evento.Tracks.Last();
26 Assert.AreEqual(evento, ultimo.Evento); 26 Assert.AreEqual(evento, ultimo.Evento);
51 var repository = DefaultEventoRepository; 51 var repository = DefaultEventoRepository;
52 52
53 var agenda = new Agenda(null, repository, DefaultPersonaRepository); 53 var agenda = new Agenda(null, repository, DefaultPersonaRepository);
54 54
55 agenda.Agendar("Html 5", "jjmontes", DateTime.Now, 55 agenda.Agendar("Html 5", "jjmontes", DateTime.Now,
56 urlInvitacion); 56 urlInvitacion, TipoEvento.Van);
57 var evento = repository.GetEventosConFecha().First(); 57 var evento = repository.GetEventosConFecha().First();
58 58
59 Assert.AreEqual(1, evento.Tracks.Count()); 59 Assert.AreEqual(1, evento.Tracks.Count());
60 Assert.AreEqual(Accion.Agendar, evento.Tracks.Last().Accion); 60 Assert.AreEqual(Accion.Agendar, evento.Tracks.Last().Accion);
61 61