diff Agendas/trunk/src/Agendas.Domain/EventoPublicadoState.cs @ 103:23325dddddcc

Persistencia del estado de los eventos
author jorge.rowies
date Sun, 05 Jun 2011 13:06:23 -0300
parents 9bfdd5bf3ad2
children c5034884c7d7
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Domain/EventoPublicadoState.cs	Sun Jun 05 11:57:34 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Domain/EventoPublicadoState.cs	Sun Jun 05 13:06:23 2011 -0300
@@ -4,17 +4,16 @@
 {
   public class EventoPublicadoState : EventoState
   {
-    private readonly Evento _evento;
+    public const string Descripcion = "Publicado";
 
-    public EventoPublicadoState(Evento evento)
-    {
-      _evento = evento;
-      _evento.AddTrack(new Track(_evento, Accion.Publicar));
-    }
-
-    public override void Promover(Accion accion)
+    public override void Promover(Evento evento, Accion accion)
     {
       throw new AccionNoSoportadaException(this.GetType(), accion);
     }
+
+    public override string GetDescripcion()
+    {
+      return Descripcion;
+    }
   }
 }
\ No newline at end of file