diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-26 08:05:32 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-26 08:05:32 -0800 |
commit | 3787e3dac06df104a8fbe4b2c2df02abadd63d74 (patch) | |
tree | a216be8fe66ba273c508a3b3f77e1e49a2557a50 /src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs | |
parent | 162f450a2cfb861ca5fcb36410625a7b3326494e (diff) | |
parent | 06fdacd94eb1a337b6822680336317357885ab48 (diff) | |
download | DotNetOpenAuth-3787e3dac06df104a8fbe4b2c2df02abadd63d74.zip DotNetOpenAuth-3787e3dac06df104a8fbe4b2c2df02abadd63d74.tar.gz DotNetOpenAuth-3787e3dac06df104a8fbe4b2c2df02abadd63d74.tar.bz2 |
Merge branch 'v4.2'
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs index 8d2c1e7..326cc74 100644 --- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs +++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs @@ -16,16 +16,20 @@ namespace DotNetOpenAuth.Test.Mocks { internal class CoordinatingOutgoingWebResponse : OutgoingWebResponse { private CoordinatingChannel receivingChannel; + private CoordinatingChannel sendingChannel; + /// <summary> /// Initializes a new instance of the <see cref="CoordinatingOutgoingWebResponse"/> class. /// </summary> /// <param name="message">The direct response message to send to the remote channel. This message will be cloned.</param> /// <param name="receivingChannel">The receiving channel.</param> - internal CoordinatingOutgoingWebResponse(IProtocolMessage message, CoordinatingChannel receivingChannel) { + internal CoordinatingOutgoingWebResponse(IProtocolMessage message, CoordinatingChannel receivingChannel, CoordinatingChannel sendingChannel) { Requires.NotNull(message, "message"); Requires.NotNull(receivingChannel, "receivingChannel"); + Requires.NotNull(sendingChannel, "sendingChannel"); this.receivingChannel = receivingChannel; + this.sendingChannel = sendingChannel; this.OriginalMessage = message; } @@ -35,6 +39,7 @@ namespace DotNetOpenAuth.Test.Mocks { } public override void Respond() { + this.sendingChannel.SaveCookies(this.Cookies); this.receivingChannel.PostMessage(this.OriginalMessage); } } |