summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-03-15 14:54:39 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-03-15 14:54:39 -0700
commitdf342fb180ae32ba8ce3443862b38e02cdea8b8d (patch)
treef39784b23dbe8018c85847967f4e944fab722507 /src/DotNetOpenAuth.Test/Mocks
parent8489549474fc59f61ff0b7e8ae7d8ffaa9bd7566 (diff)
downloadDotNetOpenAuth-df342fb180ae32ba8ce3443862b38e02cdea8b8d.zip
DotNetOpenAuth-df342fb180ae32ba8ce3443862b38e02cdea8b8d.tar.gz
DotNetOpenAuth-df342fb180ae32ba8ce3443862b38e02cdea8b8d.tar.bz2
Renamed some methods on the Channel class to be more consistent.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks')
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs6
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs6
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs6
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/TestChannel.cs2
4 files changed, 10 insertions, 10 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs
index 56fe8bc..4afd2cf 100644
--- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs
@@ -167,15 +167,15 @@ namespace DotNetOpenAuth.Test.Mocks {
return responseMessage;
}
- protected override OutgoingWebResponse SendDirectMessageResponse(IProtocolMessage response) {
+ protected override OutgoingWebResponse PrepareDirectResponse(IProtocolMessage response) {
this.ProcessMessageFilter(response, true);
return new CoordinatingOutgoingWebResponse(response, this.RemoteChannel);
}
- protected override OutgoingWebResponse SendIndirectMessage(IDirectedProtocolMessage message) {
+ protected override OutgoingWebResponse PrepareIndirectResponse(IDirectedProtocolMessage message) {
this.ProcessMessageFilter(message, true);
// In this mock transport, direct and indirect messages are the same.
- return this.SendDirectMessageResponse(message);
+ return this.PrepareDirectResponse(message);
}
protected override IDirectedProtocolMessage ReadFromRequestCore(HttpRequestInfo request) {
diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs
index 6c32495..2c02a7f 100644
--- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs
@@ -71,15 +71,15 @@ namespace DotNetOpenAuth.Test.Mocks {
return this.AwaitIncomingMessage();
}
- protected override OutgoingWebResponse SendDirectMessageResponse(IProtocolMessage response) {
+ protected override OutgoingWebResponse PrepareDirectResponse(IProtocolMessage response) {
this.RemoteChannel.incomingMessage = CloneSerializedParts(response, null);
this.RemoteChannel.incomingMessageSignal.Set();
return null;
}
- protected override OutgoingWebResponse SendIndirectMessage(IDirectedProtocolMessage message) {
+ protected override OutgoingWebResponse PrepareIndirectResponse(IDirectedProtocolMessage message) {
// In this mock transport, direct and indirect messages are the same.
- return this.SendDirectMessageResponse(message);
+ return this.PrepareDirectResponse(message);
}
protected override IDirectedProtocolMessage ReadFromRequestCore(HttpRequestInfo request) {
diff --git a/src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs b/src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs
index c55d176..439acbb 100644
--- a/src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs
@@ -25,8 +25,8 @@ namespace DotNetOpenAuth.Test.Mocks {
base.CreateFormPostResponse(message, fields);
}
- internal new void SendIndirectMessage(IDirectedProtocolMessage message) {
- base.SendIndirectMessage(message);
+ internal new void PrepareIndirectResponse(IDirectedProtocolMessage message) {
+ base.PrepareIndirectResponse(message);
}
internal new IProtocolMessage Receive(Dictionary<string, string> fields, MessageReceivingEndpoint recipient) {
@@ -41,7 +41,7 @@ namespace DotNetOpenAuth.Test.Mocks {
throw new NotImplementedException();
}
- protected override OutgoingWebResponse SendDirectMessageResponse(IProtocolMessage response) {
+ protected override OutgoingWebResponse PrepareDirectResponse(IProtocolMessage response) {
throw new NotImplementedException();
}
}
diff --git a/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs
index 3754f01..95fb90a 100644
--- a/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs
@@ -33,7 +33,7 @@ namespace DotNetOpenAuth.Test.Mocks {
throw new NotImplementedException("CreateHttpRequest");
}
- protected override OutgoingWebResponse SendDirectMessageResponse(IProtocolMessage response) {
+ protected override OutgoingWebResponse PrepareDirectResponse(IProtocolMessage response) {
throw new NotImplementedException("SendDirectMessageResponse");
}
}