diff Agendas/trunk/src/Agendas.Tests/Cruds/EventoCrudNhTests.cs @ 137:2d1adbaf0373

CRUD de Patrocinador
author nelopauselli
date Thu, 28 Jul 2011 09:26:24 -0300
parents db4b1e2cae49
children 3639803112c6
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/Cruds/EventoCrudNhTests.cs	Tue Jul 26 14:33:49 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Tests/Cruds/EventoCrudNhTests.cs	Thu Jul 28 09:26:24 2011 -0300
@@ -1,11 +1,9 @@
-using System;
-using Agendas.NHibernate;
+using Agendas.NHibernate;
 using AltNetHispano.Agendas.Domain;
 using AltNetHispano.Agendas.Repositories.NHibernate;
 using Moq;
 using NHibernate;
 using NHibernate.Cfg;
-using NHibernate.Context;
 using NHibernate.Tool.hbm2ddl;
 using NUnit.Framework;
 
@@ -69,21 +67,4 @@
 		}
 
 	}
-
-	public class RequestEmulator : IDisposable
-	{
-		private readonly ISession _session;
-
-		public RequestEmulator(ISessionFactory sessionFactory)
-		{
-			_session = sessionFactory.OpenSession();
-			CurrentSessionContext.Bind(_session);
-		}
-
-		public void Dispose()
-		{
-			_session.Flush();
-			_session.Close();
-		}
-	}
 }
\ No newline at end of file