Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Tests/Cruds/RequestEmulator.cs @ 195:4d0b2552edb2
Ticket 170: Cuando se agenda o confirma un evento, verificar que no existan otros dentro del rango horario en que se desarrollarĂ¡ el evento actual.
author | juanjose.montesdeocaarbos |
---|---|
date | Sat, 13 Aug 2011 01:01:54 -0300 |
parents | 2d1adbaf0373 |
children |
line wrap: on
line source
using System; using NHibernate; using NHibernate.Context; namespace AltNetHispano.Agendas.Tests.Cruds { 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(); } } }