comparison Agendas/trunk/src/Agendas.Tests/TrackTests.cs @ 75:96d7609f2e08

Agendar evento propuesto
author nelopauselli
date Mon, 23 May 2011 20:43:01 -0300
parents bc46e7426c80
children c2d98fd6593f
comparison
equal deleted inserted replaced
74:bc46e7426c80 75:96d7609f2e08
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 Assert.AreEqual(Accion.Agendar, evento.Tracks.Last().Accion); 25 Assert.AreEqual(Accion.Agendar, evento.Tracks.Last().Accion);
26 26
27 agenda.ModificarEvento(evento.Id, "Html 5", "otro ponente", fecha); 27 agenda.ModificarEvento(evento.Id, "Html 5", "otro ponente", fecha, urlInvitacion);
28 Assert.AreEqual(2, evento.Tracks.Count()); 28 Assert.AreEqual(2, evento.Tracks.Count());
29 Assert.AreEqual(Accion.Modificar, evento.Tracks.Last().Accion); 29 Assert.AreEqual(Accion.Modificar, evento.Tracks.Last().Accion);
30 30
31 agenda.ModificarEvento(evento.Id, "Html 5 y Css 3", "otro ponente", fecha); 31 agenda.ModificarEvento(evento.Id, "Html 5 y Css 3", "otro ponente", fecha, urlInvitacion);
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]