Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Web.Tests/Helpers/HttpServerStub.cs @ 290:15b428ae5931
Combinar
author | juanjose.montesdeocaarbos |
---|---|
date | Tue, 07 Feb 2012 23:29:06 -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); } } }