annotate Agendas/trunk/src/Agendas.Tests/AgendaTests.cs @ 4:49b572535156

proponer van publicar van propuesta comportamiento ante excepcion en publicador
author nelopauselli
date Tue, 08 Feb 2011 00:08:49 -0300
parents 5f007e266509
children 2912c1dd0e6b
rev   line source
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
1 using System;
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
2 using System.Collections.Generic;
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
3 using System.Linq;
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
4 using Agendas.Repositories.Memory;
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
5 using AltNetHispano.Agendas.Domain;
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
6 using AltNetHispano.Agendas.Domain.Exceptions;
0
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
7 using AltNetHispano.Agendas.Domain.Repositories;
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
8 using Moq;
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
9 using NUnit.Framework;
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
10
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
11 namespace AltNetHispano.Agendas.Tests
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
12 {
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
13 [TestFixture]
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
14 public class AgendaTests
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
15 {
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
16 [Test]
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
17 public void Publicar_cafe()
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
18 {
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
19 var publicador = new Mock<IPublicador>();
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
20
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
21 var agenda = new Agenda(publicador.Object, null);
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
22
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
23 var cafe = EventoObjectMother.GetCafeValidoParaPublicar();
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
24 agenda.Publicar(cafe);
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
25
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
26 publicador.Verify(p => p.Publicar(It.IsAny<Evento>()), Times.Exactly(1));
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
27 }
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
28
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
29 [Test]
1
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
30 public void Publicar_van()
0
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
31 {
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
32 var publicador = new Mock<IPublicador>();
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
33
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
34 var agenda = new Agenda(publicador.Object, null);
0
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
35
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
36 var van = EventoObjectMother.GetVanValidaParaPublicar();
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
37
0
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
38 agenda.Publicar(van);
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
39 Assert.AreEqual(1, agenda.Eventos.Count());
0
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
40
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
41 publicador.Verify(p => p.Publicar(It.IsAny<Evento>()), Times.Exactly(1));
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
42 }
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
43
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
44 [Test]
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
45 public void Error_al_publicar_van()
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
46 {
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
47 var publicador = new Mock<IPublicador>();
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
48 publicador.Setup(p => p.Publicar(It.IsAny<Evento>())).Throws(new Exception("Error intencional"));
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
49
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
50 var agenda = new Agenda(publicador.Object, null);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
51
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
52 var van = EventoObjectMother.GetVanValidaParaPublicar();
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
53 Assert.Throws<Exception>(() => agenda.Publicar(van));
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
54 Assert.AreEqual(0, agenda.Eventos.Count());
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
55
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
56 publicador.Verify(p => p.Publicar(It.IsAny<Evento>()), Times.Exactly(1));
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
57 }
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
58
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
59
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
60 [Test]
1
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
61 public void Publicar_van_multiples_publicadores()
0
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
62 {
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
63 var publicador1 = new Mock<IPublicador>();
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
64 var publicador2 = new Mock<IPublicador>();
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
65
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
66 var agenda = new Agenda(new CompositePublicador(new[] {publicador1.Object, publicador2.Object}), null);
0
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
67
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
68 var van = EventoObjectMother.GetVanValidaParaPublicar();
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
69 agenda.Publicar(van);
0
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
70
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
71 publicador1.Verify(p => p.Publicar(It.IsAny<Evento>()), Times.Exactly(1));
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
72 publicador2.Verify(p => p.Publicar(It.IsAny<Evento>()), Times.Exactly(1));
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
73 }
1
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
74
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
75 [Test]
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
76 public void Publicar_y_recordar_van()
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
77 {
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
78 var publicador1 = new Mock<IPublicador>();
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
79 var publicador2 = new Mock<IPublicador>();
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
80 var recordador1 = new Mock<IRecordador>();
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
81
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
82 var agenda = new Agenda(new CompositePublicador(new[] {publicador1.Object, publicador2.Object}), recordador1.Object);
1
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
83
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
84 var van = EventoObjectMother.GetVanValidaParaPublicar();
1
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
85 agenda.Publicar(van);
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
86
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
87 agenda.Recordar(van);
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
88
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
89 publicador1.Verify(p => p.Publicar(It.IsAny<Evento>()), Times.Exactly(1));
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
90 publicador2.Verify(p => p.Publicar(It.IsAny<Evento>()), Times.Exactly(1));
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
91 recordador1.Verify(r => r.Recordar(It.IsAny<Evento>()), Times.Exactly(1));
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
92
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
93 Assert.AreEqual(1, agenda.Eventos.Count());
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
94 }
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
95
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
96 [Test]
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
97 public void Propuesta_de_van()
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
98 {
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
99 var van = new Van{Titulo = "Van propuesta"};
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
100
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
101 var agenda = new Agenda(null, null);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
102 agenda.Proponer(van);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
103
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
104 IList<Evento> eventosPropuestos = agenda.GetEventosPropuestos();
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
105 Assert.IsNotNull(eventosPropuestos);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
106 Assert.AreEqual(1, eventosPropuestos.Count);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
107 Assert.AreEqual("Van propuesta", eventosPropuestos[0].Titulo);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
108 }
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
109
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
110 [Test]
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
111 public void Propuesta_de_van_sin_titulo()
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
112 {
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
113 var van = new Van();
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
114
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
115 var agenda = new Agenda(null, null);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
116 Assert.Throws<ValidationException>(() => agenda.Proponer(van));
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
117 Assert.AreEqual(Guid.Empty, van.Id);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
118 }
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
119
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
120
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
121 [Test]
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
122 public void Agendar_van_propuesta_sin_fecha()
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
123 {
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
124 var agenda = new Agenda(null, null);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
125
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
126 {
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
127 var van = new Van {Titulo = "Van propuesta"};
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
128 agenda.Proponer(van);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
129 }
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
130
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
131 {
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
132 var van = agenda.GetEventosPropuestos().FirstOrDefault();
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
133 Assert.IsNotNull(van);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
134 Assert.Throws<ValidationException>(()=>agenda.Publicar(van));
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
135 }
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
136 }
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
137
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
138 [Test]
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
139 public void Agendar_van_propuesta_sin_ponente()
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
140 {
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
141 var agenda = new Agenda(null, null);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
142
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
143 {
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
144 var van = new Van { Titulo = "Van propuesta" };
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
145 agenda.Proponer(van);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
146 }
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
147
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
148 {
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
149 var van = agenda.GetEventosPropuestos().FirstOrDefault() as Van;
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
150 Assert.IsNotNull(van);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
151
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
152 van.Fecha = DateTime.Today.AddDays(5);
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
153 Assert.Throws<ValidationException>(() => agenda.Publicar(van));
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
154 }
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
155 }
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
156
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
157
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
158 [Test]
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
159 public void Van_crud()
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
160 {
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
161 Guid vanId;
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
162 {
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
163 var agenda = new Agenda(null, null);
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
164 agenda.Publicar(EventoObjectMother.GetVanValidaParaPublicar());
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
165
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
166 IAgendaRepository agendaRepository = new AgendaRepository();
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
167
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
168 agendaRepository.Save(agenda);
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
169 vanId = agenda.Id;
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
170 }
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
171
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
172 {
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
173 IAgendaRepository agendaRepository = new AgendaRepository();
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
174
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
175 Agenda agenda = agendaRepository.Get(vanId);
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
176
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
177 Assert.IsNotNull(agenda);
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
178 Assert.AreEqual(1, agenda.Eventos.Count());
4
49b572535156 proponer van
nelopauselli
parents: 3
diff changeset
179 agenda.Publicar(EventoObjectMother.GetCafeValidoParaPublicar());
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
180
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
181 agendaRepository.Update(agenda);
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
182 }
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
183
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
184 {
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
185 IAgendaRepository agendaRepository = new AgendaRepository();
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
186
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
187 Agenda agenda = agendaRepository.Get(vanId);
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
188
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
189 Assert.IsNotNull(agenda);
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
190 Assert.AreEqual(2, agenda.Eventos.Count());
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
191
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
192 agendaRepository.Delete(agenda);
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
193 }
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
194
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
195 {
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
196 IAgendaRepository agendaRepository = new AgendaRepository();
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
197
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
198 Agenda agenda = agendaRepository.Get(vanId);
2
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
199
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
200 Assert.IsNull(agenda);
c03560ae4762 Test de Crud para la agenda
nelopauselli
parents: 1
diff changeset
201 }
1
6bb4ab4c0611 Tests de Crud para repositorio de Vans
nelopauselli
parents: 0
diff changeset
202 }
0
3f7dbb633b71 Test sobre la publicación de Eventos al registrarlos en la Agenda
nelopauselli
parents:
diff changeset
203 }
3
5f007e266509 code cleanup
nelopauselli
parents: 2
diff changeset
204 }