view Agendas/trunk/src/Agendas.Repositories.Tests/Infraestructure/MemoryInfraestrutureFactory.cs @ 222:68b09c30b0d2

Separando los test de persistencia en un proyecto aparte
author nelopauselli
date Mon, 19 Sep 2011 18:18:17 -0300
parents Agendas/trunk/src/Agendas.Tests/Cruds/EventoCrudMemoryTests.cs@3639803112c6
children 72a96459f910
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 Func<IDisposable> GetRequestEmulator()
		{
			return () => new Mock<IDisposable>().Object;
		}
	}
}