Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Blog/Impl/BlogPublicador.cs @ 66:a61f3204c9f7
Merge
author | jorge.rowies |
---|---|
date | Tue, 17 May 2011 18:25:17 -0300 |
parents | ebce59b45b50 |
children | 26d0513a8410 |
line wrap: on
line source
using AltNetHispano.Agendas.Domain; namespace Agendas.Blog.Impl { public class BlogPublicador : IPublicador { private readonly IPostWriterFactory _postWriterFactory; public BlogPublicador(IPostWriterFactory postWriterFactory) { _postWriterFactory = postWriterFactory; } public void Publicar(Evento evento) { foreach (var track in evento.Tracks) _postWriterFactory.GetPostWriter(track.Accion).WritePost(evento); } } }