Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Tests/TrackTests.cs @ 73:76567a0d1e44
Eliminando algunas propiedades que no se estaban usando
author | nelopauselli |
---|---|
date | Mon, 23 May 2011 19:54:05 -0300 |
parents | c7264bfc4b71 |
children | bc46e7426c80 |
comparison
equal
deleted
inserted
replaced
72:dc1ef7665c5f | 73:76567a0d1e44 |
---|---|
32 Assert.AreEqual(3, evento.Tracks.Count()); | 32 Assert.AreEqual(3, evento.Tracks.Count()); |
33 Assert.AreEqual(Accion.CambiarTitulo, evento.Tracks.Last().Accion); | 33 Assert.AreEqual(Accion.CambiarTitulo, evento.Tracks.Last().Accion); |
34 } | 34 } |
35 | 35 |
36 [Test] | 36 [Test] |
37 public void Track_al_publicar_y_realizar_evento() | 37 public void Track_al_publicar_y_confirmar_evento() |
38 { | 38 { |
39 var repository = DefaultEventoRepository; | 39 var repository = DefaultEventoRepository; |
40 | 40 |
41 var agenda = new Agenda(null, null, repository, DefaultPonenteRepository); | 41 var agenda = new Agenda(null, null, repository, DefaultPonenteRepository); |
42 | 42 |
45 var evento = repository.GetEventosConFecha().First(); | 45 var evento = repository.GetEventosConFecha().First(); |
46 | 46 |
47 Assert.AreEqual(1, evento.Tracks.Count()); | 47 Assert.AreEqual(1, evento.Tracks.Count()); |
48 Assert.AreEqual(Accion.Publicar, evento.Tracks.Last().Accion); | 48 Assert.AreEqual(Accion.Publicar, evento.Tracks.Last().Accion); |
49 | 49 |
50 agenda.RealizarEvento(evento.Id, "Esta es la sintesis"); | 50 //TODO: confirmar evento y evaluar .tracks |
51 Assert.AreEqual(2, evento.Tracks.Count()); | |
52 Assert.AreEqual(Accion.Realizar, evento.Tracks.Last().Accion); | |
53 } | 51 } |
54 } | 52 } |
55 } | 53 } |