summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-03-15 18:04:41 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-03-15 18:04:41 -0700
commiteca38cd0d1d360d6d5ee3afbe3759a6efb6a5acf (patch)
treef0f3e84986b87d6302ce3e4de06a229d2ab835f8 /src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs
parentdf342fb180ae32ba8ce3443862b38e02cdea8b8d (diff)
downloadDotNetOpenAuth-eca38cd0d1d360d6d5ee3afbe3759a6efb6a5acf.zip
DotNetOpenAuth-eca38cd0d1d360d6d5ee3afbe3759a6efb6a5acf.tar.gz
DotNetOpenAuth-eca38cd0d1d360d6d5ee3afbe3759a6efb6a5acf.tar.bz2
Renamed a couple of methods:
PrepareMessageForSending -> ProcessOutgoingMessage VerifyMessageAfterReceiving -> ProcessIncomingMessage
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs')
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs
index 2c02a7f..88ada15 100644
--- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs
@@ -43,7 +43,7 @@ namespace DotNetOpenAuth.Test.Mocks {
internal OutgoingWebResponse RequestProtectedResource(AccessProtectedResourceRequest request) {
((ITamperResistantOAuthMessage)request).HttpMethod = this.GetHttpMethod(((ITamperResistantOAuthMessage)request).HttpMethods);
- this.PrepareMessageForSending(request);
+ this.ProcessOutgoingMessage(request);
HttpRequestInfo requestInfo = this.SpoofHttpMethod(request);
TestBase.TestLogger.InfoFormat("Sending protected resource request: {0}", requestInfo.Message);
// Drop the outgoing message in the other channel's in-slot and let them know it's there.
@@ -74,7 +74,7 @@ namespace DotNetOpenAuth.Test.Mocks {
protected override OutgoingWebResponse PrepareDirectResponse(IProtocolMessage response) {
this.RemoteChannel.incomingMessage = CloneSerializedParts(response, null);
this.RemoteChannel.incomingMessageSignal.Set();
- return null;
+ return new OutgoingWebResponse(); // not used, but returning null is not allowed
}
protected override OutgoingWebResponse PrepareIndirectResponse(IDirectedProtocolMessage message) {