Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Tests/TrackTests.cs @ 74:bc46e7426c80
Refactoring de acciones según la definición del diagrama de estados en assembla
(https://www.assembla.com/spaces/altnet-hispano/wiki/Estados_de_un_evento)
author | nelopauselli |
---|---|
date | Mon, 23 May 2011 20:13:37 -0300 |
parents | 76567a0d1e44 |
children | 96d7609f2e08 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/TrackTests.cs Mon May 23 19:54:05 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Tests/TrackTests.cs Mon May 23 20:13:37 2011 -0300 @@ -18,11 +18,11 @@ var agenda = new Agenda(null, null, repository, DefaultPonenteRepository); var fecha = DateTime.Now.AddDays(5); - agenda.Publicar("Html 5", "jjmontes", fecha, urlInvitacion); + agenda.Agendar("Html 5", "jjmontes", fecha, urlInvitacion); var evento = repository.GetEventosConFecha().First(); Assert.AreEqual(1, evento.Tracks.Count()); - Assert.AreEqual(Accion.Publicar, evento.Tracks.Last().Accion); + Assert.AreEqual(Accion.Agendar, evento.Tracks.Last().Accion); agenda.ModificarEvento(evento.Id, "Html 5", "otro ponente", fecha); Assert.AreEqual(2, evento.Tracks.Count()); @@ -40,12 +40,12 @@ var agenda = new Agenda(null, null, repository, DefaultPonenteRepository); - agenda.Publicar("Html 5", "jjmontes", DateTime.Now, + agenda.Agendar("Html 5", "jjmontes", DateTime.Now, urlInvitacion); var evento = repository.GetEventosConFecha().First(); Assert.AreEqual(1, evento.Tracks.Count()); - Assert.AreEqual(Accion.Publicar, evento.Tracks.Last().Accion); + Assert.AreEqual(Accion.Agendar, evento.Tracks.Last().Accion); //TODO: confirmar evento y evaluar .tracks }