diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-28 16:31:42 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-28 16:33:01 -0700 |
commit | 3f01e9b105a551fa7b7f7e54ddabd797328e0a4b (patch) | |
tree | 941889ba2ba02bc356582373849563eea2782225 /src/DotNetOpenAuth.Test/OpenId/ChannelElements | |
parent | 6877b41cb57087bc6ecefcfc5a0f9534a33b2ba8 (diff) | |
download | DotNetOpenAuth-3f01e9b105a551fa7b7f7e54ddabd797328e0a4b.zip DotNetOpenAuth-3f01e9b105a551fa7b7f7e54ddabd797328e0a4b.tar.gz DotNetOpenAuth-3f01e9b105a551fa7b7f7e54ddabd797328e0a4b.tar.bz2 |
Consolidates two OpenID memory app stores
The StandardRelyingPartyApplicationStore and
StandardProviderApplicationStore were equivalent, and thus redundant.
There was also nothing OpenID specific about them. So this consolidates
and renames these types to better reflect their general purpose.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/ChannelElements')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs | 5 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs index ca0e4b4..ac8eed2 100644 --- a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs @@ -14,6 +14,7 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements { using System.Threading.Tasks; using DotNetOpenAuth.Messaging; + using DotNetOpenAuth.Messaging.Bindings; using DotNetOpenAuth.OpenId; using DotNetOpenAuth.OpenId.ChannelElements; using DotNetOpenAuth.OpenId.Extensions; @@ -121,12 +122,12 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements { [Test] public async Task ExtensionsAreIdentifiedAsSignedOrUnsigned() { Protocol protocol = Protocol.Default; - var opStore = new StandardProviderApplicationStore(); + var opStore = new MemoryCryptoKeyAndNonceStore(); int rpStep = 0; Handle(RPUri).By( async req => { - var rp = new OpenIdRelyingParty(new StandardRelyingPartyApplicationStore(), this.HostFactories); + var rp = new OpenIdRelyingParty(new MemoryCryptoKeyAndNonceStore(), this.HostFactories); RegisterMockExtension(rp.Channel); switch (++rpStep) { diff --git a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs index c9cd52c..a9d469a 100644 --- a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs @@ -30,7 +30,7 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements { [SetUp] public void Setup() { - this.channel = new OpenIdRelyingPartyChannel(new MemoryCryptoKeyStore(), new NonceMemoryStore(maximumMessageAge), new RelyingPartySecuritySettings(), this.HostFactories); + this.channel = new OpenIdRelyingPartyChannel(new MemoryCryptoKeyStore(), new MemoryNonceStore(maximumMessageAge), new RelyingPartySecuritySettings(), this.HostFactories); } [Test] |