Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Domain/EventoPublicadoState.cs @ 119:8fa58a79656a
Historico
author | Nelo@Kenia.neluz.int |
---|---|
date | Wed, 22 Jun 2011 09:49:07 -0300 |
parents | 53bcd338542b |
children | 3639803112c6 |
line wrap: on
line source
using System; using AltNetHispano.Agendas.Domain.Exceptions; namespace AltNetHispano.Agendas.Domain { public class EventoPublicadoState : EventoState { private EventoPublicadoState() { } private static readonly EventoState _instance = new EventoPublicadoState(); public static EventoState GetInstance() { return _instance; } private const string Descripcion = "Publicado"; public override void Promover(Evento evento, Accion accion) { throw new AccionNoSoportadaException(this.GetType(), accion); } public override string GetDescripcion() { return Descripcion; } public override bool PuedePromover(Accion accion) { return false; } } }