annotate Agendas/trunk/src/Agendas.Repositories.Tests/Infraestructure/MemoryInfraestrutureFactory.cs @ 275:bf993f99cee3

Ticket #123: Patrocinadores de las vans.
author juanjose.montesdeocaarbos
date Wed, 14 Dec 2011 08:15:44 -0300
parents 72a96459f910
children
rev   line source
60
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
1 using System;
222
68b09c30b0d2 Separando los test de persistencia en un proyecto aparte
nelopauselli
parents: 140
diff changeset
2 using AltNetHispano.Agendas.Domain.Repositories;
60
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
3 using AltNetHispano.Agendas.Repositories.Memory;
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
4 using Moq;
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
5
222
68b09c30b0d2 Separando los test de persistencia en un proyecto aparte
nelopauselli
parents: 140
diff changeset
6 namespace Agendas.Repositories.Tests.Infraestructure
60
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
7 {
222
68b09c30b0d2 Separando los test de persistencia en un proyecto aparte
nelopauselli
parents: 140
diff changeset
8 public class MemoryInfraestrutureFactory : IInfraestrutureFactory
60
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
9 {
222
68b09c30b0d2 Separando los test de persistencia en un proyecto aparte
nelopauselli
parents: 140
diff changeset
10 public IEventoRepository GetEventoRepository()
63
963b71ea6028 Repositorios con NH
nelopauselli
parents: 62
diff changeset
11 {
222
68b09c30b0d2 Separando los test de persistencia en un proyecto aparte
nelopauselli
parents: 140
diff changeset
12 return new EventoRepository();
63
963b71ea6028 Repositorios con NH
nelopauselli
parents: 62
diff changeset
13 }
963b71ea6028 Repositorios con NH
nelopauselli
parents: 62
diff changeset
14
222
68b09c30b0d2 Separando los test de persistencia en un proyecto aparte
nelopauselli
parents: 140
diff changeset
15 public IPersonaRepository GetPonenteRepository()
60
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
16 {
222
68b09c30b0d2 Separando los test de persistencia en un proyecto aparte
nelopauselli
parents: 140
diff changeset
17 return new PersonaRepository();
60
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
18 }
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
19
274
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 222
diff changeset
20 public IPatrocinadorRepository GetPatrocinadorRepository()
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 222
diff changeset
21 {
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 222
diff changeset
22 return new PatrocinadorRepository();
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 222
diff changeset
23 }
72a96459f910 Ticket #123: Patrocinadores de las vans.
juanjose.montesdeocaarbos
parents: 222
diff changeset
24
222
68b09c30b0d2 Separando los test de persistencia en un proyecto aparte
nelopauselli
parents: 140
diff changeset
25 public Func<IDisposable> GetRequestEmulator()
60
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
26 {
222
68b09c30b0d2 Separando los test de persistencia en un proyecto aparte
nelopauselli
parents: 140
diff changeset
27 return () => new Mock<IDisposable>().Object;
140
3639803112c6 Refactoring de la relación entre Evento y Estado
nelopauselli
parents: 137
diff changeset
28 }
60
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
29 }
02e163f2ca38 Refactoring de test de crud del evento
nelopauselli
parents:
diff changeset
30 }