view Agendas/trunk/src/Agendas.Domain/EventoPublicadoState.cs @ 154:2233039ac2eb

Unificando vistas
author Nelo@Guinea.neluz.int
date Wed, 03 Aug 2011 01:02:42 -0300
parents 3639803112c6
children
line wrap: on
line source

using System;
using AltNetHispano.Agendas.Domain.Exceptions;

namespace AltNetHispano.Agendas.Domain
{
	public class EventoPublicadoState : EventoState
	{
		protected EventoPublicadoState()
		{
		}

		private static readonly EventoState _instance = new EventoPublicadoState();
		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 "Publicado"; }
		}

		public override bool PuedePromover(Accion accion)
		{
			return false;
		}
	}
}