diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-14 15:19:27 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-14 15:19:27 -0700 |
commit | 37d699e59e096802abbf9a2e976c8bc2f6ad8404 (patch) | |
tree | 696695f5ef9a7ff1db07783a46ef14df9657c263 /src/DotNetOpenAuth.Test/Mocks/TestChannel.cs | |
parent | fc5e2ea3ff4d9aac85c9b40084d86c3fc72c65ce (diff) | |
download | DotNetOpenAuth-37d699e59e096802abbf9a2e976c8bc2f6ad8404.zip DotNetOpenAuth-37d699e59e096802abbf9a2e976c8bc2f6ad8404.tar.gz DotNetOpenAuth-37d699e59e096802abbf9a2e976c8bc2f6ad8404.tar.bz2 |
Refactored MessageDescription to be per-Channel instead of appdomain static.
This allows for special scenarios (like OSIS tests) where individual tests might need to contrive special message serialization rules.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/TestChannel.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/TestChannel.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs index a65b39c..a72ab63 100644 --- a/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs +++ b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs @@ -9,12 +9,18 @@ namespace DotNetOpenAuth.Test.Mocks { using System.Collections.Generic; using System.Net; using DotNetOpenAuth.Messaging; + using DotNetOpenAuth.Messaging.Reflection; internal class TestChannel : Channel { internal TestChannel() : this(new TestMessageFactory()) { } + internal TestChannel(MessageDescriptionCollection messageDescriptions) + : this() { + this.MessageDescriptions = messageDescriptions; + } + internal TestChannel(IMessageFactory messageTypeProvider, params IChannelBindingElement[] bindingElements) : base(messageTypeProvider, bindingElements) { } |