Skip to content

Commit

Permalink
Fix some url Unit Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cnurse committed Aug 23, 2013
1 parent c687793 commit 4aa00ed
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions DNN Platform/Tests/DotNetNuke.Tests.Urls/UrlRewriteTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,20 @@ private void ExecuteTestForTab(TabInfo tab, FriendlyUrlSettings settings, Dictio

CreateSimulatedRequest(new Uri(testurl));

var request = HttpContext.Current.Request;
var testHelper = new UrlTestHelper
{
HttpAliasFull = scheme + httpAlias + "/",
Result = new UrlAction(scheme, scheme + httpAlias, Globals.ApplicationMapPath)
{
IsSecureConnection = HttpContext.Current.Request.IsSecureConnection,
RawUrl = HttpContext.Current.Request.RawUrl
},
//Result = new UrlAction(scheme, scheme + httpAlias, Globals.ApplicationMapPath)
// {
// IsSecureConnection = HttpContext.Current.Request.IsSecureConnection,
// RawUrl = HttpContext.Current.Request.RawUrl
// },
Result = new UrlAction(request)
{
IsSecureConnection = request.IsSecureConnection,
RawUrl = request.RawUrl
},
RequestUri = new Uri(testurl),
QueryStringCol = new NameValueCollection()
};
Expand Down

0 comments on commit 4aa00ed

Please sign in to comment.