summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2011-05-08 14:29:38 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2011-05-08 14:29:38 -0700
commit0d770e52ec07737ada68cf37eb86fb6d3921fa0b (patch)
tree392705af13b5a197c49c2996677e9f89c15b50fa /src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs
parentc9d487b66ea899b69b3c33ac45f499c6c61c9b21 (diff)
downloadDotNetOpenAuth-0d770e52ec07737ada68cf37eb86fb6d3921fa0b.zip
DotNetOpenAuth-0d770e52ec07737ada68cf37eb86fb6d3921fa0b.tar.gz
DotNetOpenAuth-0d770e52ec07737ada68cf37eb86fb6d3921fa0b.tar.bz2
Created an IProviderAssociationStore interface so that encoding the association into the handle is just one option.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs')
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs b/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs
index fc1c98b..4ca2c90 100644
--- a/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs
@@ -34,7 +34,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions {
IEnumerable<IOpenIdMessageExtension> requests,
IEnumerable<IOpenIdMessageExtension> responses) {
var securitySettings = new ProviderSecuritySettings();
- var associationStore = new ProviderAssociationStore();
+ var associationStore = new ProviderAssociationHandleEncoder();
Association association = HmacShaAssociation.Create(protocol, protocol.Args.SignatureAlgorithm.Best, AssociationRelyingPartyType.Smart, associationStore, securitySettings);
var coordinator = new OpenIdCoordinator(
rp => {
@@ -58,7 +58,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions {
},
op => {
RegisterExtension(op.Channel, Mocks.MockOpenIdExtension.Factory);
- op.AssociationStore.Secret = associationStore.Secret;
+ ((ProviderAssociationHandleEncoder)op.AssociationStore).Secret = associationStore.Secret;
var request = op.Channel.ReadFromRequest<CheckIdRequest>();
var response = new PositiveAssertionResponse(request);
var receivedRequests = request.Extensions.Cast<IOpenIdMessageExtension>();