Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Tests/Cruds/EventoTests.cs @ 60:02e163f2ca38
Refactoring de test de crud del evento
author | nelopauselli |
---|---|
date | Mon, 16 May 2011 21:40:40 -0300 |
parents | |
children | c40b97bbed01 |
comparison
equal
deleted
inserted
replaced
59:4a4e12e32256 | 60:02e163f2ca38 |
---|---|
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 { | |
16 _eventoCrud = new EventoCrud(() => new EventoRepository(), () => new Mock<IDisposable>().Object); | |
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 } |