mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Using FluentPath assembly
Deprecates PathUtil utility class --HG-- branch : dev
This commit is contained in:
@@ -13,14 +13,13 @@ namespace Orchard.Specs.Hosting
|
||||
{
|
||||
public static RequestDetails SendRequest(this WebHost webHost, string urlPath)
|
||||
{
|
||||
var physicalPath = new PathUtil(webHost.PhysicalDirectory);
|
||||
var physicalPath = Bleroy.FluentPath.Path.Get(webHost.PhysicalDirectory);
|
||||
|
||||
var details = new RequestDetails
|
||||
{
|
||||
Page = physicalPath
|
||||
.Combine(urlPath.TrimStart('/', '\\'))
|
||||
.GetRelativePath(physicalPath)
|
||||
.ToString()
|
||||
};
|
||||
|
||||
webHost.Execute(() =>
|
||||
|
Reference in New Issue
Block a user