summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-03-05 21:50:54 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-05 21:50:54 -0800
commit5fcf14c67ba2a9f95ed9685b8ab519394be2c2f5 (patch)
treee24ac49b3b18a04fb9bbfe8b970063b3b3f6ab7a /src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs
parenta292822196d0911a68fc56597ed52a8c84a41cbe (diff)
parentc8ddd3b2a4e4aa1a90c867c619845ffb2d967a4c (diff)
downloadDotNetOpenAuth-5fcf14c67ba2a9f95ed9685b8ab519394be2c2f5.zip
DotNetOpenAuth-5fcf14c67ba2a9f95ed9685b8ab519394be2c2f5.tar.gz
DotNetOpenAuth-5fcf14c67ba2a9f95ed9685b8ab519394be2c2f5.tar.bz2
HttpRequestInfo now replaced in public APIs with HttpRequestBase.
Fixes #78
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs')
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs
index 8d5295b..10bd59a 100644
--- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs
@@ -11,6 +11,8 @@ namespace DotNetOpenAuth.Test.Mocks {
using System.Linq;
using System.Text;
using System.Threading;
+ using System.Web;
+
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.Messaging.Reflection;
using DotNetOpenAuth.Test.OpenId;
@@ -146,7 +148,7 @@ namespace DotNetOpenAuth.Test.Mocks {
this.incomingMessageSignal.Set();
}
- protected internal override HttpRequestInfo GetRequestFromContext() {
+ protected internal override HttpRequestBase GetRequestFromContext() {
MessageReceivingEndpoint recipient;
var messageData = this.AwaitIncomingMessage(out recipient);
if (messageData != null) {
@@ -191,12 +193,13 @@ namespace DotNetOpenAuth.Test.Mocks {
return this.PrepareDirectResponse(message);
}
- protected override IDirectedProtocolMessage ReadFromRequestCore(HttpRequestInfo request) {
- if (request.Message != null) {
- this.ProcessMessageFilter(request.Message, false);
+ protected override IDirectedProtocolMessage ReadFromRequestCore(HttpRequestBase request) {
+ var mockRequest = (CoordinatingHttpRequestInfo)request;
+ if (mockRequest.Message != null) {
+ this.ProcessMessageFilter(mockRequest.Message, false);
}
- return request.Message;
+ return mockRequest.Message;
}
protected override IDictionary<string, string> ReadFromResponseCore(IncomingWebResponse response) {