mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Create ToAppRelative wrapper in IVirtualPathProvider
--HG-- branch : dev
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user