summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId/Extensions
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-03-14 15:19:27 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-03-14 15:19:27 -0700
commit37d699e59e096802abbf9a2e976c8bc2f6ad8404 (patch)
tree696695f5ef9a7ff1db07783a46ef14df9657c263 /src/DotNetOpenAuth.Test/OpenId/Extensions
parentfc5e2ea3ff4d9aac85c9b40084d86c3fc72c65ce (diff)
downloadDotNetOpenAuth-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/Extensions')
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyRequestTests.cs2
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyResponseTests.cs2
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistration/ClaimsRequestTests.cs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyRequestTests.cs b/src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyRequestTests.cs
index 253d8ec..303c747 100644
--- a/src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyRequestTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyRequestTests.cs
@@ -109,7 +109,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions.ProviderAuthenticationPolicy {
PolicyRequest req = new PolicyRequest();
IMessageWithEvents reqEvents = req;
- var fields = new MessageDictionary(req);
+ var fields = this.MessageDescriptions.GetAccessor(req);
reqEvents.OnSending();
Assert.AreEqual(1, fields.Count);
Assert.IsTrue(fields.ContainsKey("preferred_auth_policies"));
diff --git a/src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyResponseTests.cs b/src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyResponseTests.cs
index 0d0219b..e0faaac 100644
--- a/src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyResponseTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/Extensions/ProviderAuthenticationPolicy/PolicyResponseTests.cs
@@ -169,7 +169,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions.ProviderAuthenticationPolicy {
PolicyResponse resp = new PolicyResponse();
IMessageWithEvents respEvents = resp;
- var fields = new MessageDictionary(resp);
+ var fields = this.MessageDescriptions.GetAccessor(resp);
respEvents.OnSending();
Assert.AreEqual(1, fields.Count);
Assert.IsTrue(fields.ContainsKey("auth_policies"));
diff --git a/src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistration/ClaimsRequestTests.cs b/src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistration/ClaimsRequestTests.cs
index feb1450..3af54d3 100644
--- a/src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistration/ClaimsRequestTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/Extensions/SimpleRegistration/ClaimsRequestTests.cs
@@ -24,7 +24,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions {
[TestMethod]
public void RequiredOptionalLists() {
ClaimsRequest req = new ClaimsRequest();
- MessageDictionary dictionary = new MessageDictionary(req);
+ MessageDictionary dictionary = this.MessageDescriptions.GetAccessor(req);
Assert.AreEqual(string.Empty, dictionary["required"]);
Assert.AreEqual(string.Empty, dictionary["optional"]);