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/OpenId/Messages/AssociateUnencryptedResponseTests.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/OpenId/Messages/AssociateUnencryptedResponseTests.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/Messages/AssociateUnencryptedResponseTests.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/Messages/AssociateUnencryptedResponseTests.cs b/src/DotNetOpenAuth.Test/OpenId/Messages/AssociateUnencryptedResponseTests.cs index 89609f6..1f5e87c 100644 --- a/src/DotNetOpenAuth.Test/OpenId/Messages/AssociateUnencryptedResponseTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/Messages/AssociateUnencryptedResponseTests.cs @@ -12,11 +12,12 @@ namespace DotNetOpenAuth.Test.OpenId.Messages { using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] - public class AssociateUnencryptedResponseTests { + public class AssociateUnencryptedResponseTests : OpenIdTestBase { private AssociateUnencryptedResponse response; [TestInitialize] - public void Setup() { + public override void SetUp() { + base.SetUp(); var request = new AssociateUnencryptedRequest(Protocol.V20.Version, new Uri("http://host")); this.response = new AssociateUnencryptedResponse(request.Version, request); } @@ -29,7 +30,7 @@ namespace DotNetOpenAuth.Test.OpenId.Messages { this.response.ExpiresIn = 50; MessageSerializer serializer = MessageSerializer.Get(this.response.GetType()); - var fields = serializer.Serialize(this.response); + var fields = this.MessageDescriptions.GetAccessor(this.response).Serialize(); Assert.AreEqual(Protocol.OpenId2Namespace, fields["ns"]); Assert.AreEqual("HANDLE", fields["assoc_handle"]); Assert.AreEqual("HMAC-SHA1", fields["assoc_type"]); |