Mercurial > altnet-hispano
view 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 source
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(); } } }