summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-28 16:31:42 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-28 16:33:01 -0700
commit3f01e9b105a551fa7b7f7e54ddabd797328e0a4b (patch)
tree941889ba2ba02bc356582373849563eea2782225 /src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
parent6877b41cb57087bc6ecefcfc5a0f9534a33b2ba8 (diff)
downloadDotNetOpenAuth-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/AuthenticationTests.cs')
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
index 1bc65e5..871eb78 100644
--- a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
@@ -66,10 +66,10 @@ namespace DotNetOpenAuth.Test.OpenId {
[Test]
public async Task UnsolicitedAssertion() {
- var opStore = new StandardProviderApplicationStore();
+ var opStore = new MemoryCryptoKeyAndNonceStore();
Handle(RPUri).By(
async req => {
- var rp = new OpenIdRelyingParty(new StandardRelyingPartyApplicationStore(), this.HostFactories);
+ var rp = new OpenIdRelyingParty(new MemoryCryptoKeyAndNonceStore(), this.HostFactories);
IAuthenticationResponse response = await rp.GetResponseAsync(req);
Assert.That(response, Is.Not.Null);
Assert.AreEqual(AuthenticationStatus.Authenticated, response.Status);
@@ -97,10 +97,10 @@ namespace DotNetOpenAuth.Test.OpenId {
[Test]
public async Task UnsolicitedAssertionRejected() {
- var opStore = new StandardProviderApplicationStore();
+ var opStore = new MemoryCryptoKeyAndNonceStore();
Handle(RPUri).By(
async req => {
- var rp = new OpenIdRelyingParty(new StandardRelyingPartyApplicationStore(), this.HostFactories);
+ var rp = new OpenIdRelyingParty(new MemoryCryptoKeyAndNonceStore(), this.HostFactories);
rp.SecuritySettings.RejectUnsolicitedAssertions = true;
IAuthenticationResponse response = await rp.GetResponseAsync(req);
Assert.That(response, Is.Not.Null);
@@ -132,7 +132,7 @@ namespace DotNetOpenAuth.Test.OpenId {
/// </summary>
[Test]
public async Task UnsolicitedDelegatingIdentifierRejection() {
- var opStore = new StandardProviderApplicationStore();
+ var opStore = new MemoryCryptoKeyAndNonceStore();
Handle(RPUri).By(
async req => {
var rp = this.CreateRelyingParty();