diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-05-28 17:15:19 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-05-28 17:16:14 -0700 |
commit | 5ea256fa7309ad23f4278ef9113ccde5a231bff7 (patch) | |
tree | 52489fda9952d9aa7ccd59fab795e6862e24753b /src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs | |
parent | 049482bbc34e9ffabe3a735e7a00f5f3c5fbab10 (diff) | |
download | DotNetOpenAuth-5ea256fa7309ad23f4278ef9113ccde5a231bff7.zip DotNetOpenAuth-5ea256fa7309ad23f4278ef9113ccde5a231bff7.tar.gz DotNetOpenAuth-5ea256fa7309ad23f4278ef9113ccde5a231bff7.tar.bz2 |
Fixed unit tests so there are no failures.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs index b1548c1..2814506 100644 --- a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs @@ -198,7 +198,11 @@ namespace DotNetOpenAuth.Test.OpenId { } }, op => { - op.CryptoKeyStore.StoreKey(ProviderAssociationHandleEncoder.AssociationHandleEncodingSecretBucket, association.Handle, cryptoKeyStore.GetKey(ProviderAssociationHandleEncoder.AssociationHandleEncodingSecretBucket, association.Handle)); + if (association != null) { + var key = cryptoKeyStore.GetCurrentKey(ProviderAssociationHandleEncoder.AssociationHandleEncodingSecretBucket, TimeSpan.FromSeconds(1)); + op.CryptoKeyStore.StoreKey(ProviderAssociationHandleEncoder.AssociationHandleEncodingSecretBucket, key.Key, key.Value); + } + var request = op.Channel.ReadFromRequest<CheckIdRequest>(); Assert.IsNotNull(request); IProtocolMessage response; |