Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Blog/Impl/BlogPublicador.cs @ 109:6bd9be78caa0
Merge
author | Nelo@Kenia.neluz.int |
---|---|
date | Tue, 07 Jun 2011 23:21:07 -0300 |
parents | 1d820f17fc75 |
children | c3573defd18f |
line wrap: on
line source
using System.Collections.Generic; 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(IEnumerable<Track> tracks) { foreach (var track in tracks) _postWriterFactory.GetPostWriter(track.Accion).WritePost(track); } } }