comparison 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
comparison
equal deleted inserted replaced
62:c40b97bbed01 65:ebce59b45b50
1 using AltNetHispano.Agendas.Domain;
2
3 namespace Agendas.Blog.Impl
4 {
5 public class PostWriterFactory : IPostWriterFactory
6 {
7 public IPostWriter GetPostWriter(Accion accion)
8 {
9 switch (accion)
10 {
11 case Accion.Realizar:
12 return new RealizarReunionPostWriter();
13 case Accion.Publicar:
14 return new PublicarReunionPostWriter();
15 default:
16 return new NullObjectPostWriter();
17 }
18 }
19 }
20 }