Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Tests/TrackTests.cs @ 118:b74734a1a755
Manejo de eventos por estado
author | Nelo@Kenia.neluz.int |
---|---|
date | Wed, 22 Jun 2011 09:32:59 -0300 |
parents | 0bca45e1e664 |
children | 62791999ad01 |
comparison
equal
deleted
inserted
replaced
117:7ef7e4bb71f6 | 118:b74734a1a755 |
---|---|
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, TipoEvento.Van); | 21 agenda.Agendar("Html 5", "jjmontes", fecha, urlInvitacion, TipoEvento.Van); |
22 var evento = repository.GetEventosConFecha().First(); | 22 var evento = repository.GetActivos().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); |
27 Assert.AreEqual(Accion.Agendar, ultimo.Accion); | 27 Assert.AreEqual(Accion.Agendar, ultimo.Accion); |
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, TipoEvento.Van); | 56 urlInvitacion, TipoEvento.Van); |
57 var evento = repository.GetEventosConFecha().First(); | 57 var evento = repository.GetActivos().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 |
62 //TODO: confirmar evento y evaluar .tracks | 62 //TODO: confirmar evento y evaluar .tracks |