diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-21 07:05:28 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-21 07:05:28 -0700 |
commit | b53f5530fe1adbd5dccd6ff2743e8e2ba512eba2 (patch) | |
tree | 50188e63239b37868ef6a0084ec360ce8393f206 /src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs | |
parent | 4b24b2730bfb5333eb13c6e6b79baac1dee49812 (diff) | |
download | DotNetOpenAuth-b53f5530fe1adbd5dccd6ff2743e8e2ba512eba2.zip DotNetOpenAuth-b53f5530fe1adbd5dccd6ff2743e8e2ba512eba2.tar.gz DotNetOpenAuth-b53f5530fe1adbd5dccd6ff2743e8e2ba512eba2.tar.bz2 |
Moves OpenID coordinator handlers to base class.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs | 4 |
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 f2928f3..057abb3 100644 --- a/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs +++ b/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs @@ -42,7 +42,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions { var associationStore = new ProviderAssociationHandleEncoder(cryptoKeyStore); Association association = HmacShaAssociationProvider.Create(protocol, protocol.Args.SignatureAlgorithm.Best, AssociationRelyingPartyType.Smart, associationStore, securitySettings); await CoordinatorBase.RunAsync( - CoordinatorBase.RelyingPartyDriver(async (rp, ct) => { + OpenIdTestBase.RelyingPartyDriver(async (rp, ct) => { RegisterExtension(rp.Channel, Mocks.MockOpenIdExtension.Factory); var requestBase = new CheckIdRequest(protocol.Version, OpenIdTestBase.OPUri, AuthenticationRequestMode.Immediate); OpenIdTestBase.StoreAssociation(rp, OpenIdTestBase.OPUri, association); @@ -68,7 +68,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions { var receivedResponses = response.Extensions.Cast<IOpenIdMessageExtension>(); CollectionAssert<IOpenIdMessageExtension>.AreEquivalentByEquality(responses.ToArray(), receivedResponses.ToArray()); }), - CoordinatorBase.HandleProvider(async (op, req, ct) => { + OpenIdTestBase.HandleProvider(async (op, req, ct) => { RegisterExtension(op.Channel, Mocks.MockOpenIdExtension.Factory); var key = cryptoKeyStore.GetCurrentKey(ProviderAssociationHandleEncoder.AssociationHandleEncodingSecretBucket, TimeSpan.FromSeconds(1)); op.CryptoKeyStore.StoreKey(ProviderAssociationHandleEncoder.AssociationHandleEncodingSecretBucket, key.Key, key.Value); |