diff Agendas/trunk/src/Agendas.Google.Test/PublicadorTest.cs @ 229:33976aea7546

Varios Ponentes en calendario
author nelopauselli
date Wed, 28 Sep 2011 19:14:49 -0300
parents 5346c0500594
children e5959f3405e0
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Google.Test/PublicadorTest.cs	Wed Sep 28 18:51:53 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Google.Test/PublicadorTest.cs	Wed Sep 28 19:14:49 2011 -0300
@@ -179,5 +179,25 @@
             agenda.Cancelar(evento.Id);
             adapter.Verify(ad => ad.DeleteEvent(It.IsAny<DateTime>(), It.IsAny<DateTime>(), out message), Times.Once());
         }
+
+		[Test]
+		public void PublicarConMasDeUnPonente()
+		{
+			var adapter = new Mock<IGCalendarAdapter>();
+			var detail = new VanGEventDetail();
+			var fechaInicio = new DateTime(2011, 07, 09, 18, 0, 0, DateTimeKind.Utc);
+			var fechaTermino = fechaInicio.AddHours(2);
+
+			var publicador = new GooglePublicador(adapter.Object);
+			var agenda = new Agenda(publicador, DefaultEventoRepository, DefaultPersonaRepository);
+			agenda.Agendar("Identity Providers Públicos y Empresariales", TestsHelper.GetOrCreatePonente("Carlos Peix"), fechaInicio,
+						   fechaTermino, "https://groups.google.com/d/topic/altnet-hispano/arYEMsPiAtY/discussion",
+						   TipoEvento.Van, new[] { TestsHelper.GetOrCreatePonente("Nelo Pauselli") });
+
+			var ev = DefaultEventoRepository.GetActivos()[0];
+			detail.Generate(ev);
+
+			Assert.That(detail.Summary, Is.StringContaining("Carlos Peix y Nelo Pauselli."));
+		}
     }
 }
\ No newline at end of file