view Agendas/trunk/src/Agendas.Blog/Impl/PostWriterFactory.cs @ 65:ebce59b45b50

Agregado de version inicial del publicador para el blog
author ROWIES@ardejorxp.inworx.corp
date Tue, 17 May 2011 18:04:56 -0300
parents
children bc46e7426c80
line wrap: on
line source

using AltNetHispano.Agendas.Domain;

namespace Agendas.Blog.Impl
{
  public class PostWriterFactory : IPostWriterFactory
  {
    public IPostWriter GetPostWriter(Accion accion)
    {
      switch (accion)
      {
        case Accion.Realizar:
          return new RealizarReunionPostWriter();
        case Accion.Publicar:
          return new PublicarReunionPostWriter();
        default:
          return new NullObjectPostWriter();
      }
    }
  }
}