Mercurial > altnet-hispano
annotate Agendas/trunk/src/Agendas.Tests/Cruds/EventoTests.cs @ 62:c40b97bbed01
Verificando persistencia de Ponentes y Tracks en tests de CRUD
author | nelopauselli |
---|---|
date | Tue, 17 May 2011 01:55:19 -0300 |
parents | 02e163f2ca38 |
children | 963b71ea6028 |
rev | line source |
---|---|
60 | 1 using System; |
2 using AltNetHispano.Agendas.Repositories.Memory; | |
3 using Moq; | |
4 using NUnit.Framework; | |
5 | |
6 namespace AltNetHispano.Agendas.Tests.Cruds | |
7 { | |
8 [TestFixture] | |
9 public class EventoCrudTests : TestBase | |
10 { | |
11 private EventoCrud _eventoCrud; | |
12 | |
13 [SetUp] | |
14 public void CreateCrud() | |
15 { | |
62
c40b97bbed01
Verificando persistencia de Ponentes y Tracks en tests de CRUD
nelopauselli
parents:
60
diff
changeset
|
16 _eventoCrud = new EventoCrud(() => new EventoRepository(), ()=>new PonenteRepository(), () => new Mock<IDisposable>().Object); |
60 | 17 |
18 } | |
19 | |
20 [Test] | |
21 public void Create() | |
22 { | |
23 _eventoCrud.Create(); | |
24 } | |
25 | |
26 [Test] | |
27 public void Read() | |
28 { | |
29 _eventoCrud.Read(); | |
30 } | |
31 | |
32 [Test] | |
33 public void Update() | |
34 { | |
35 _eventoCrud.Update(); | |
36 } | |
37 | |
38 [Test] | |
39 public void Delete() | |
40 { | |
41 _eventoCrud.Delete(); | |
42 } | |
43 | |
44 } | |
45 } |