view Agendas/trunk/src/Agendas.Domain/EventoPublicadoState.cs @ 115:7a2eeb9e9bf9

Crear cuenta interna asociada
author Nelo@Kenia.neluz.int
date Sun, 12 Jun 2011 01:40:09 -0300
parents c5034884c7d7
children 53bcd338542b
line wrap: on
line source

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;
    }
  }
}