Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Google.Test/GCalendarTest.cs @ 185:2d02adb79322
Se agrega fecha de termino de un Evento y se incluye la hora a la fecha de inicio.
Se modifica la propiedad Fecha del Evento, renombrandola FechaInicio.
En el ModelView se agrega propiedades DuraciĆ³n y Hora del Evento cuando es Modificado, Nuevo y Agendado.
Las fechas ingresadas son creadas en sistema UTC
Queda pendiente Agregar duraciĆ³n a Google Calendar.
author | alabra |
---|---|
date | Tue, 09 Aug 2011 01:04:27 -0400 |
parents | 734d3f0853bf |
children | c61954d24c8c |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Google.Test/GCalendarTest.cs Mon Aug 08 22:32:12 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Google.Test/GCalendarTest.cs Tue Aug 09 01:04:27 2011 -0400 @@ -10,13 +10,14 @@ [TestFixture] public class GCalendarTest : TestBase { - private readonly DateTime _fechaEvento = new DateTime(2011, 07, 16); + private readonly DateTime _fechaEvento = new DateTime(2011, 07, 16, 18, 0, 0, DateTimeKind.Utc); + private readonly DateTime _fechaTermino = new DateTime(2011, 07, 16, 20, 0, 0, DateTimeKind.Utc); [Test] public void CrearEventoGoogleCalendar() { var gCalendar = new GCalendarAdapter("VAN"); - var ev = Evento.Agendar("Evento Test", null, _fechaEvento, "url", TipoEvento.Cafe); + var ev = Evento.Agendar("Evento Test", null, _fechaEvento, _fechaTermino, "url", TipoEvento.Cafe); string message; var detail = new CafeGEventDetail(); detail.Generate(ev);