Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Domain/EventoDescartadoState.cs @ 269:17694f70cfb6
Test de PersonaController.
author | juanjose.montesdeocaarbos |
---|---|
date | Tue, 25 Oct 2011 23:24:57 -0300 |
parents | 3639803112c6 |
children |
line wrap: on
line source
using System; using AltNetHispano.Agendas.Domain.Exceptions; namespace AltNetHispano.Agendas.Domain { public class EventoDescartadoState : EventoState { protected EventoDescartadoState() { } private static readonly EventoState _instance = new EventoDescartadoState(); public static EventoState GetInstance() { return _instance; } public override void Promover(Evento evento, Accion accion) { throw new AccionNoSoportadaException(this.GetType(), accion); } public override string Descripcion { get { return "Descartado"; } } public override bool PuedePromover(Accion accion) { return false; } } }