diff options
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks')
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"); } } |