Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Google.Test/PublicadorTest.cs @ 131:81870e6f7e55
Se agrega publicador cuando el evento es del tipo Cafe y GrupoEstudio
author | alabra |
---|---|
date | Sun, 10 Jul 2011 22:54:08 -0400 |
parents | 0ea32a748453 |
children | a4ef6874ec81 |
comparison
equal
deleted
inserted
replaced
130:0ea32a748453 | 131:81870e6f7e55 |
---|---|
12 public class PublicadorTest : TestBase | 12 public class PublicadorTest : TestBase |
13 { | 13 { |
14 /// <summary> | 14 /// <summary> |
15 /// Validar que solamente se creen eventos cuando la acción sea Accion.Agendar | 15 /// Validar que solamente se creen eventos cuando la acción sea Accion.Agendar |
16 /// </summary> | 16 /// </summary> |
17 [Test] | 17 [Test, Explicit] |
18 public void CuandoPublicarEventoDadoAccionAgendarEntoncesEventoCreado() | 18 public void CuandoPublicarEventoDadoAccionAgendarEntoncesEventoCreado() |
19 { | 19 { |
20 | 20 |
21 } | 21 } |
22 | 22 |
71 var detail = new CafeGEventDetail(); | 71 var detail = new CafeGEventDetail(); |
72 | 72 |
73 var publicador = new GooglePublicador(adapter.Object); | 73 var publicador = new GooglePublicador(adapter.Object); |
74 var agenda = new Agenda(publicador, DefaultEventoRepository, DefaultPersonaRepository); | 74 var agenda = new Agenda(publicador, DefaultEventoRepository, DefaultPersonaRepository); |
75 agenda.Proponer("Agile Patterns", null, null, TipoEvento.Cafe); | 75 agenda.Proponer("Agile Patterns", null, null, TipoEvento.Cafe); |
76 agenda.Agendar("Agile Patterns", null, new DateTime(2011, 07, 09), "https://groups.google.com/d/topic/altnet-hispano/arYEMsPiAtY/discussion", TipoEvento.Cafe); | 76 agenda.Agendar("Agile Patterns", "Alejandro Labra", new DateTime(2011, 07, 09), "https://groups.google.com/d/topic/altnet-hispano/arYEMsPiAtY/discussion", TipoEvento.Cafe); |
77 | 77 |
78 var ev = DefaultEventoRepository.GetActivos()[0]; | 78 var ev = DefaultEventoRepository.GetActivos()[0]; |
79 detail.Generate(ev); | 79 detail.Generate(ev); |
80 | 80 |
81 Assert.AreEqual("http://snipr.com/virtualaltnet", detail.Location); | 81 Assert.AreEqual("http://snipr.com/virtualaltnet", detail.Location); |
107 var detail = new EstudioGEventDetail(); | 107 var detail = new EstudioGEventDetail(); |
108 | 108 |
109 var publicador = new GooglePublicador(adapter.Object); | 109 var publicador = new GooglePublicador(adapter.Object); |
110 var agenda = new Agenda(publicador, DefaultEventoRepository, DefaultPersonaRepository); | 110 var agenda = new Agenda(publicador, DefaultEventoRepository, DefaultPersonaRepository); |
111 agenda.Proponer("Agile Patterns", null, null, TipoEvento.GrupoEstudio); | 111 agenda.Proponer("Agile Patterns", null, null, TipoEvento.GrupoEstudio); |
112 agenda.Agendar("Agile Patterns", null, new DateTime(2011, 07, 09), "https://groups.google.com/d/topic/altnet-hispano/arYEMsPiAtY/discussion", TipoEvento.GrupoEstudio); | 112 agenda.Agendar("Agile Patterns", "Alejandro Labra", new DateTime(2011, 07, 09), "https://groups.google.com/d/topic/altnet-hispano/arYEMsPiAtY/discussion", TipoEvento.GrupoEstudio); |
113 | 113 |
114 var ev = DefaultEventoRepository.GetActivos()[0]; | 114 var ev = DefaultEventoRepository.GetActivos()[0]; |
115 detail.Generate(ev); | 115 detail.Generate(ev); |
116 | 116 |
117 Assert.AreEqual("http://snipr.com/virtualaltnet", detail.Location); | 117 Assert.AreEqual("http://snipr.com/virtualaltnet", detail.Location); |