view Agendas/trunk/src/Agendas.Tests/EventoStateTests.cs @ 185:2d02adb79322

Se agrega fecha de termino de un Evento y se incluye la hora a la fecha de inicio. Se modifica la propiedad Fecha del Evento, renombrandola FechaInicio. En el ModelView se agrega propiedades Duración y Hora del Evento cuando es Modificado, Nuevo y Agendado. Las fechas ingresadas son creadas en sistema UTC Queda pendiente Agregar duración a Google Calendar.
author alabra
date Tue, 09 Aug 2011 01:04:27 -0400
parents 3639803112c6
children 68b09c30b0d2
line wrap: on
line source

using System.Linq;
using Agendas.NHibernate;
using AltNetHispano.Agendas.Domain;
using NUnit.Framework;

namespace AltNetHispano.Agendas.Tests
{
	[TestFixture]
	public class EventoStateTests
	{
		[Test]
		public void Check_all()
		{
			var definidos = EventoStateType.All;

			var types = typeof (EventoState).Assembly.GetTypes();

			int reflexion = types.Count(type => typeof(EventoState).IsAssignableFrom(type) && !type.IsAbstract);

			Assert.AreEqual(definidos.Count(), reflexion);
		}
	}
}