diff options
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/CoordinatingUserAgentResponse.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/CoordinatingUserAgentResponse.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingUserAgentResponse.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingUserAgentResponse.cs new file mode 100644 index 0000000..4897e98 --- /dev/null +++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingUserAgentResponse.cs @@ -0,0 +1,29 @@ +//----------------------------------------------------------------------- +// <copyright file="CoordinatingUserAgentResponse.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.Test.Mocks { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Text; + using DotNetOpenAuth.Messaging; + + internal class CoordinatingUserAgentResponse : UserAgentResponse { + private CoordinatingChannel receivingChannel; + + internal CoordinatingUserAgentResponse(IProtocolMessage message, CoordinatingChannel receivingChannel) { + ErrorUtilities.VerifyArgumentNotNull(message, "message"); + ErrorUtilities.VerifyArgumentNotNull(receivingChannel, "receivingChannel"); + + this.receivingChannel = receivingChannel; + this.OriginalMessage = message; + } + + public override void Send() { + this.receivingChannel.PostMessage(this.OriginalMessage); + } + } +} |