view Agendas/trunk/src/Agendas.Domain/EventoDescartadoState.cs @ 202:a731086c0b28

Se soluciona ticket 174. Además se agrega detalle del campo Hora y Duración cuando son obligatorios en Resources.
author alabra
date Sat, 20 Aug 2011 18:40:36 -0400
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;
        }
    }
}