diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-27 08:19:20 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-01-29 10:39:00 -0800 |
commit | eb2fe80ed606932a983bb8002c132a98514db827 (patch) | |
tree | 944f9e57a51eb92da4b169d85c09487b15288432 /src/DotNetOpenAuth.Test/Mocks/TestChannel.cs | |
parent | 8dc4fc1e94fd0c4f7b34e68da67cb81efab504d7 (diff) | |
download | DotNetOpenAuth-eb2fe80ed606932a983bb8002c132a98514db827.zip DotNetOpenAuth-eb2fe80ed606932a983bb8002c132a98514db827.tar.gz DotNetOpenAuth-eb2fe80ed606932a983bb8002c132a98514db827.tar.bz2 |
OpenID messages that are missing signed parameters now throws ProtocolException instead of KeyNotFoundException.
Fixes #45
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/TestChannel.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/TestChannel.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs index 95fb90a..92fd9c6 100644 --- a/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs +++ b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs @@ -25,6 +25,21 @@ namespace DotNetOpenAuth.Test.Mocks { : base(messageTypeProvider, bindingElements) { } + /// <summary> + /// Deserializes a dictionary of values into a message. + /// </summary> + /// <param name="fields">The dictionary of values that were read from an HTTP request or response.</param> + /// <param name="recipient">Information about where the message was directed. Null for direct response messages.</param> + /// <returns> + /// The deserialized message, or null if no message could be recognized in the provided data. + /// </returns> + /// <remarks> + /// This internal method exposes Receive directly to unit tests for easier deserialization of custom (possibly malformed) messages. + /// </remarks> + internal new IProtocolMessage Receive(Dictionary<string, string> fields, MessageReceivingEndpoint recipient) { + return base.Receive(fields, recipient); + } + protected override IDictionary<string, string> ReadFromResponseCore(IncomingWebResponse response) { throw new NotImplementedException("ReadFromResponseInternal"); } |