comparison Agendas/trunk/src/Agendas.Repositories.Tests/Infraestructure/NhHelperTest.cs @ 282:bc8dfbde0523

#123: Patrocinadores de las vans: Se verifica que para publicar una Van, debe tener al menos un Patrocinador.
author juanjose.montesdeocaarbos
date Mon, 26 Dec 2011 14:21:44 -0300
parents 72a96459f910
children eeca9ddb330a
comparison
equal deleted inserted replaced
281:6382e35625c5 282:bc8dfbde0523
8 { 8 {
9 var sf = NhHelper.GetSessionFactory(); 9 var sf = NhHelper.GetSessionFactory();
10 10
11 var session = sf.OpenStatelessSession(); 11 var session = sf.OpenStatelessSession();
12 session.CreateSQLQuery("DELETE FROM Ponentes").ExecuteUpdate(); 12 session.CreateSQLQuery("DELETE FROM Ponentes").ExecuteUpdate();
13 session.CreateSQLQuery("DELETE FROM Patrocinador").ExecuteUpdate();
13 session.CreateSQLQuery("DELETE FROM Evento").ExecuteUpdate(); 14 session.CreateSQLQuery("DELETE FROM Evento").ExecuteUpdate();
14 session.CreateSQLQuery("DELETE FROM Persona").ExecuteUpdate(); 15 session.CreateSQLQuery("DELETE FROM Persona").ExecuteUpdate();
15 session.CreateSQLQuery("DELETE FROM Patrocinador").ExecuteUpdate();
16 } 16 }
17 } 17 }
18 } 18 }