Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Repositories.Tests/Infraestructure/NhHelperTest.cs @ 287:eeca9ddb330a
BUG: Los Patrocinadores quedaban asociados a un único evento. Se armó un test que lo demuestra y se modificó el modelo de la base de datos.
author | juanjose.montesdeocaarbos |
---|---|
date | Mon, 02 Jan 2012 19:44:41 -0300 |
parents | bc8dfbde0523 |
children |
comparison
equal
deleted
inserted
replaced
286:a8f7c41e3b47 | 287:eeca9ddb330a |
---|---|
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 Patrocinadores").ExecuteUpdate(); | |
14 session.CreateSQLQuery("DELETE FROM Evento").ExecuteUpdate(); | |
13 session.CreateSQLQuery("DELETE FROM Patrocinador").ExecuteUpdate(); | 15 session.CreateSQLQuery("DELETE FROM Patrocinador").ExecuteUpdate(); |
14 session.CreateSQLQuery("DELETE FROM Evento").ExecuteUpdate(); | 16 session.CreateSQLQuery("DELETE FROM Roles").ExecuteUpdate(); |
15 session.CreateSQLQuery("DELETE FROM Persona").ExecuteUpdate(); | 17 session.CreateSQLQuery("DELETE FROM Persona").ExecuteUpdate(); |
16 } | 18 } |
17 } | 19 } |
18 } | 20 } |