Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Tests/Cruds/PersonaCrudNhTests.cs @ 209:a36a76bd6ec3
Se soluciona ticket 173. Se agrega eliminación de personas siempre y cuando no esté asociada a ninguna van.
author | alabra |
---|---|
date | Wed, 24 Aug 2011 19:27:30 -0300 |
parents | 5346c0500594 |
children |
comparison
equal
deleted
inserted
replaced
208:607384590bf8 | 209:a36a76bd6ec3 |
---|---|
30 | 30 |
31 [SetUp] | 31 [SetUp] |
32 public void CreateCrud() | 32 public void CreateCrud() |
33 { | 33 { |
34 ISessionFactory sessionFactory = NhHelper.GetSessionFactory(); | 34 ISessionFactory sessionFactory = NhHelper.GetSessionFactory(); |
35 _test = new PersonaCrud(() => new PersonaRepository(sessionFactory), () => new RequestEmulator(sessionFactory)); | 35 _test = new PersonaCrud(() => new PersonaRepository(sessionFactory), () => new RequestEmulator(sessionFactory), |
36 () => new EventoRepository(sessionFactory)); | |
36 } | 37 } |
37 | 38 |
38 #endregion | 39 #endregion |
39 | 40 |
40 [Test] | 41 [Test] |
64 [Test] | 65 [Test] |
65 public void Update() | 66 public void Update() |
66 { | 67 { |
67 _test.Update(); | 68 _test.Update(); |
68 } | 69 } |
70 | |
71 [Test] | |
72 public void Delete() | |
73 { | |
74 _test.Delete(); | |
75 } | |
69 } | 76 } |
70 } | 77 } |