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 {
|
|
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 } |