summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs')
-rw-r--r--src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs b/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs
index cefab0f..ee35b24 100644
--- a/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs
+++ b/src/DotNetOpenAuth.Test/OAuth2/OAuth2TestBase.cs
@@ -19,7 +19,9 @@ namespace DotNetOpenAuth.Test.OAuth2 {
protected internal const string ClientSecret = "TestClientSecret";
- protected const string Username = "TestUser";
+ protected const string ResourceOwnerUsername = "TestUser";
+
+ protected const string ResourceOwnerPassword = "TestUserPassword";
protected static readonly Uri ClientCallback = new Uri("http://client/callback");
@@ -40,7 +42,7 @@ namespace DotNetOpenAuth.Test.OAuth2 {
var cryptoStore = new MemoryCryptoKeyStore();
authHostMock.Setup(m => m.GetClient(ClientId)).Returns(ClientDescription);
authHostMock.SetupGet(m => m.CryptoKeyStore).Returns(cryptoStore);
- authHostMock.Setup(m => m.IsAuthorizationValid(It.Is<IAuthorizationDescription>(d => d.ClientIdentifier == ClientId && d.User == Username))).Returns(true);
+ authHostMock.Setup(m => m.IsAuthorizationValid(It.Is<IAuthorizationDescription>(d => d.ClientIdentifier == ClientId && d.User == ResourceOwnerUsername))).Returns(true);
return authHostMock;
}
}