Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Blog/Impl/PostWriterFactory.cs @ 74:bc46e7426c80
Refactoring de acciones según la definición del diagrama de estados en assembla
(https://www.assembla.com/spaces/altnet-hispano/wiki/Estados_de_un_evento)
author | nelopauselli |
---|---|
date | Mon, 23 May 2011 20:13:37 -0300 |
parents | ebce59b45b50 |
children | a300394dbabe |
comparison
equal
deleted
inserted
replaced
73:76567a0d1e44 | 74:bc46e7426c80 |
---|---|
6 { | 6 { |
7 public IPostWriter GetPostWriter(Accion accion) | 7 public IPostWriter GetPostWriter(Accion accion) |
8 { | 8 { |
9 switch (accion) | 9 switch (accion) |
10 { | 10 { |
11 case Accion.Realizar: | 11 case Accion.Publicar: |
12 return new RealizarReunionPostWriter(); | 12 return new RealizarReunionPostWriter(); |
13 case Accion.Publicar: | 13 case Accion.Agendar: |
14 return new PublicarReunionPostWriter(); | 14 return new PublicarReunionPostWriter(); |
15 default: | 15 default: |
16 return new NullObjectPostWriter(); | 16 return new NullObjectPostWriter(); |
17 } | 17 } |
18 } | 18 } |