view Agendas/trunk/src/Agendas.Web.Tests/Helpers/HttpServerStub.cs @ 283:2e17dfd1ba35

Cambiandos espacios por tabuladores, etc.
author juanjose.montesdeocaarbos
date Mon, 26 Dec 2011 14:34:46 -0300
parents 6f5ab71614d4
children
line wrap: on
line source

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using AltNetHispano.Agendas.Web.Services;

namespace Agendas.Web.Tests.Helpers
{
	public class HttpServerStub : HttpServerUtilityBase
	{
		public override string MapPath(string path)
		{
			var directory = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory);
			
#if DEBUG
			if (directory.Parent != null && directory.Parent.Parent != null)
				directory = directory.Parent.Parent;
#endif

			return path.Replace("~", directory.FullName);
		}
	}
}