diff Agendas/trunk/src/Agendas.Domain/EventoDescartadoState.cs @ 140:3639803112c6

Refactoring de la relación entre Evento y Estado
author nelopauselli
date Fri, 29 Jul 2011 16:30:53 -0300
parents 6f1041301797
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Domain/EventoDescartadoState.cs	Thu Jul 28 10:16:09 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Domain/EventoDescartadoState.cs	Fri Jul 29 16:30:53 2011 -0300
@@ -1,10 +1,11 @@
-using AltNetHispano.Agendas.Domain.Exceptions;
+using System;
+using AltNetHispano.Agendas.Domain.Exceptions;
 
 namespace AltNetHispano.Agendas.Domain
 {
     public class EventoDescartadoState : EventoState
     {
-        private EventoDescartadoState()
+		protected EventoDescartadoState()
         {
         }
 
@@ -15,19 +16,17 @@
             return _instance;
         }
 
-        private const string Descripcion = "Descartado";
-
         public override void Promover(Evento evento, Accion accion)
         {
             throw new AccionNoSoportadaException(this.GetType(), accion);
         }
 
-        public override string GetDescripcion()
-        {
-            return Descripcion;
-        }
+    	public override string Descripcion
+    	{
+			get { return "Descartado"; }
+    	}
 
-        public override bool PuedePromover(Accion accion)
+    	public override bool PuedePromover(Accion accion)
         {
             return false;
         }