Mercurial > altnet-hispano
view 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 |
line wrap: on
line source
using System; using AltNetHispano.Agendas.Domain.Repositories; using AltNetHispano.Agendas.Repositories.Memory; using Moq; namespace Agendas.Repositories.Tests.Infraestructure { public class MemoryInfraestrutureFactory : IInfraestrutureFactory { public IEventoRepository GetEventoRepository() { return new EventoRepository(); } public IPersonaRepository GetPonenteRepository() { return new PersonaRepository(); } public IPatrocinadorRepository GetPatrocinadorRepository() { return new PatrocinadorRepository(); } public Func<IDisposable> GetRequestEmulator() { return () => new Mock<IDisposable>().Object; } } }