Create ToAppRelative wrapper in IVirtualPathProvider

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-18 15:09:10 -07:00
parent 27c945d498
commit 9198be72ed
4 changed files with 13 additions and 5 deletions

View File

@@ -29,6 +29,10 @@ namespace Orchard.Tests.Stubs {
return Path.Combine(paths).Replace(Path.DirectorySeparatorChar, '/');
}
public string ToAppRelative(string virtualPath) {
return "~/" + ToFileSystemPath(virtualPath);
}
public string MapPath(string virtualPath) {
throw new NotImplementedException("Mapping to a physical file is not supported in Unit Test with this stub.");
}