Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Blog/Impl/PostWriter.cs @ 73:76567a0d1e44
Eliminando algunas propiedades que no se estaban usando
author | nelopauselli |
---|---|
date | Mon, 23 May 2011 19:54:05 -0300 |
parents | c7264bfc4b71 |
children | bc46e7426c80 |
line wrap: on
line source
using System; using System.Linq; using AltNetHispano.Agendas.Domain; namespace Agendas.Blog.Impl { public abstract class PostWriter : IPostWriter { public virtual void WritePost(Evento evento) { var title = GetTitle(evento); var body = GetBody(evento); this.ExecuteService(title, body); } protected abstract string GetBody(Evento evento); protected abstract string GetTitle(Evento evento); protected string GetNombreUsuario(Evento evento) { return evento.Tracks.Single(t => t.Accion == Accion.Realizar).Usuario; } protected void ExecuteService(string title, string body) { //TODO: invocar al web service throw new NotImplementedException(); } } }