Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Tests/TrackTests.cs @ 54:3059a5f8930f
Code cleanup
author | nelopauselli |
---|---|
date | Sat, 14 May 2011 13:01:24 -0300 |
parents | 3ebe89c88caa |
children | c7264bfc4b71 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/TrackTests.cs Sat May 14 12:45:50 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Tests/TrackTests.cs Sat May 14 13:01:24 2011 -0300 @@ -5,49 +5,48 @@ namespace AltNetHispano.Agendas.Tests { - [TestFixture] - public class TrackTests : TestBase - { - [Test] - public void Track_al_publicar_y_modificar_evento() - { - var repository = DefaultEventoRepository; + [TestFixture] + public class TrackTests : TestBase + { + [Test] + public void Track_al_publicar_y_modificar_evento() + { + var repository = DefaultEventoRepository; - var agenda = new Agenda(null, null, repository, DefaultPonenteRepository); + var agenda = new Agenda(null, null, repository, DefaultPonenteRepository); - var fecha = DateTime.Now.AddDays(5); - agenda.Publicar("Html 5", "jjmontes", fecha); - var evento = repository.GetEventosConFecha().First(); + var fecha = DateTime.Now.AddDays(5); + agenda.Publicar("Html 5", "jjmontes", fecha); + var evento = repository.GetEventosConFecha().First(); - Assert.AreEqual(1, evento.Tracks.Count()); - Assert.AreEqual(Accion.Publicar, evento.Tracks.Last().Accion); + Assert.AreEqual(1, evento.Tracks.Count()); + Assert.AreEqual(Accion.Publicar, evento.Tracks.Last().Accion); - agenda.ModificarEvento(evento.Id, "Html 5", "otro ponente", fecha); - Assert.AreEqual(2, evento.Tracks.Count()); - Assert.AreEqual(Accion.Modificar, evento.Tracks.Last().Accion); + agenda.ModificarEvento(evento.Id, "Html 5", "otro ponente", fecha); + Assert.AreEqual(2, evento.Tracks.Count()); + Assert.AreEqual(Accion.Modificar, evento.Tracks.Last().Accion); - agenda.ModificarEvento(evento.Id, "Html 5 y Css 3", "otro ponente", fecha); - Assert.AreEqual(3, evento.Tracks.Count()); - Assert.AreEqual(Accion.CambiarTitulo, evento.Tracks.Last().Accion); - } + agenda.ModificarEvento(evento.Id, "Html 5 y Css 3", "otro ponente", fecha); + Assert.AreEqual(3, evento.Tracks.Count()); + Assert.AreEqual(Accion.CambiarTitulo, evento.Tracks.Last().Accion); + } - [Test] - public void Track_al_publicar_y_realizar_evento() - { - var repository = DefaultEventoRepository; + [Test] + public void Track_al_publicar_y_realizar_evento() + { + var repository = DefaultEventoRepository; - var agenda = new Agenda(null, null, repository, DefaultPonenteRepository); + var agenda = new Agenda(null, null, repository, DefaultPonenteRepository); - agenda.Publicar("Html 5", "jjmontes", DateTime.Now); - var evento = repository.GetEventosConFecha().First(); + agenda.Publicar("Html 5", "jjmontes", DateTime.Now); + var evento = repository.GetEventosConFecha().First(); - Assert.AreEqual(1, evento.Tracks.Count()); - Assert.AreEqual(Accion.Publicar, evento.Tracks.Last().Accion); + Assert.AreEqual(1, evento.Tracks.Count()); + Assert.AreEqual(Accion.Publicar, evento.Tracks.Last().Accion); - agenda.RealizarEvento(evento.Id, "Esta es la sintesis"); - Assert.AreEqual(2, evento.Tracks.Count()); - Assert.AreEqual(Accion.Realizar, evento.Tracks.Last().Accion); - } - - } + agenda.RealizarEvento(evento.Id, "Esta es la sintesis"); + Assert.AreEqual(2, evento.Tracks.Count()); + Assert.AreEqual(Accion.Realizar, evento.Tracks.Last().Accion); + } + } } \ No newline at end of file