diff Agendas/trunk/src/Agendas.NHibernate/EventoStateType.cs @ 222:68b09c30b0d2

Separando los test de persistencia en un proyecto aparte
author nelopauselli
date Mon, 19 Sep 2011 18:18:17 -0300
parents 3639803112c6
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.NHibernate/EventoStateType.cs	Tue Sep 13 09:01:58 2011 -0300
+++ b/Agendas/trunk/src/Agendas.NHibernate/EventoStateType.cs	Mon Sep 19 18:18:17 2011 -0300
@@ -1,26 +1,13 @@
-using System.Collections.Generic;
-using AltNetHispano.Agendas.Domain;
+using AltNetHispano.Agendas.Domain;
+using AltNetHispano.Agendas.Domain.Repositories;
 using NHibernate.SqlTypes;
 
 namespace Agendas.NHibernate
 {
 	public class EventoStateType : GenericWellKnownInstanceType<EventoState, string> 
 	{
-		public static IEnumerable<EventoState> All
-		{
-			get
-			{
-				return new[]
-			       	{
-			       		EventoNullState.GetInstance(), EventoPropuestoState.GetInstance(), EventoAgendadoState.GetInstance(),
-			       		EventoConfirmadoState.GetInstance(), EventoPublicadoState.GetInstance(), EventoCanceladoState.GetInstance(),
-			       		EventoDescartadoState.GetInstance()
-			       	};
-			}
-		}
-
 		public EventoStateType()
-			: base(All, (state, id) => state.Descripcion == id, state => state.Descripcion)
+			: base(EventoStateRepository.All, (state, id) => state.Descripcion == id, state => state.Descripcion)
 		{
 		}