diff Agendas/trunk/src/Agendas.Blog/Impl/PostWriter.cs @ 105:1d820f17fc75

ajustes y correcciones en el publicador de blogs agregado de numeroOrden y urlWiki en metodo Publicar de Agenda y Evento (con test)
author jorge.rowies
date Mon, 06 Jun 2011 09:12:52 -0300
parents cc91817a4206
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Blog/Impl/PostWriter.cs	Sun Jun 05 13:22:36 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Blog/Impl/PostWriter.cs	Mon Jun 06 09:12:52 2011 -0300
@@ -12,20 +12,20 @@
       _postWriterWebService = postWriterWebService;
     }
 
-    public virtual void WritePost(Evento evento)
+    public virtual void WritePost(Track track)
     {
-      var title = GetTitle(evento);
-      var body = GetBody(evento);
-      this.ExecuteService(title, body, this.GetNombreUsuario(evento));
+      var title = GetTitle(track);
+      var body = GetBody(track);
+      this.ExecuteService(title, body, this.GetNombreUsuario(track));
     }
 
-    protected abstract string GetBody(Evento evento);
+    protected abstract string GetBody(Track track);
 
-    protected abstract string GetTitle(Evento evento);
+    protected abstract string GetTitle(Track track);
 
-    protected string GetNombreUsuario(Evento evento)
+    protected string GetNombreUsuario(Track track)
     {
-      return evento.Tracks.Single(t => t.Accion == Accion.Publicar).Usuario.Nombre;
+      return track.Usuario.Nombre;
     }
 
     protected void ExecuteService(string title, string body, string author)