Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Repositories.Tests/TestsHelper.cs @ 235:c61954d24c8c
Quitando ponente principal y utilizando siempre la lista de ponentes
author | nelopauselli |
---|---|
date | Tue, 04 Oct 2011 20:42:35 -0300 |
parents | 68b09c30b0d2 |
children | 51faeabfb9d9 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Repositories.Tests/TestsHelper.cs Wed Sep 28 20:02:44 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Repositories.Tests/TestsHelper.cs Tue Oct 04 20:42:35 2011 -0300 @@ -1,4 +1,5 @@ using System; +using Agendas.NHibernate; using AltNetHispano.Agendas.Domain; using AltNetHispano.Agendas.Domain.Repositories; @@ -20,6 +21,8 @@ { persona = new Persona(nombre) { Twitter = nombre.Replace(" ", string.Empty).ToLower() }; _repository.Save(persona); + + NhHelper.GetSessionFactory().GetCurrentSession().Flush(); } return persona.Id; }