Mercurial > altnet-hispano
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Agendas/trunk/src/Agendas.Tests/Cruds/EventoTests.cs Mon May 16 21:40:40 2011 -0300 @@ -0,0 +1,45 @@ +using System; +using AltNetHispano.Agendas.Repositories.Memory; +using Moq; +using NUnit.Framework; + +namespace AltNetHispano.Agendas.Tests.Cruds +{ + [TestFixture] + public class EventoCrudTests : TestBase + { + private EventoCrud _eventoCrud; + + [SetUp] + public void CreateCrud() + { + _eventoCrud = new EventoCrud(() => new EventoRepository(), () => new Mock<IDisposable>().Object); + + } + + [Test] + public void Create() + { + _eventoCrud.Create(); + } + + [Test] + public void Read() + { + _eventoCrud.Read(); + } + + [Test] + public void Update() + { + _eventoCrud.Update(); + } + + [Test] + public void Delete() + { + _eventoCrud.Delete(); + } + + } +} \ No newline at end of file