Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Domain/EventoDescartadoState.cs @ 133:6f1041301797
Se agregan los estados Cancelado y Descartado con las acciones Cancelar, Reagendar, Descartar, Reproponer, según ticket 146.
Falta solucionar problema con flujo, ver más información en el ticket de assembla.
http://www.assembla.com/spaces/altnet-hispano/tickets/146-implementar-estado-descartar-y-cancelar-de-eventos
author | alabra |
---|---|
date | Sun, 10 Jul 2011 23:59:19 -0400 |
parents | |
children | 3639803112c6 |
comparison
equal
deleted
inserted
replaced
132:45be716763c3 | 133:6f1041301797 |
---|---|
1 using AltNetHispano.Agendas.Domain.Exceptions; | |
2 | |
3 namespace AltNetHispano.Agendas.Domain | |
4 { | |
5 public class EventoDescartadoState : EventoState | |
6 { | |
7 private EventoDescartadoState() | |
8 { | |
9 } | |
10 | |
11 private static readonly EventoState _instance = new EventoDescartadoState(); | |
12 | |
13 public static EventoState GetInstance() | |
14 { | |
15 return _instance; | |
16 } | |
17 | |
18 private const string Descripcion = "Descartado"; | |
19 | |
20 public override void Promover(Evento evento, Accion accion) | |
21 { | |
22 throw new AccionNoSoportadaException(this.GetType(), accion); | |
23 } | |
24 | |
25 public override string GetDescripcion() | |
26 { | |
27 return Descripcion; | |
28 } | |
29 | |
30 public override bool PuedePromover(Accion accion) | |
31 { | |
32 return false; | |
33 } | |
34 } | |
35 } |