diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-06-05 21:50:32 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-06-05 21:50:32 -0700 |
commit | 44b7be237574be25deb0815a423552d495a60efb (patch) | |
tree | 5b2f0a3f3da2be8511ec071c21276fa6cd08d485 /src/DotNetOpenAuth.Test | |
parent | 5771ee17eff3adf0a7968484ff089de739e6cafd (diff) | |
download | DotNetOpenAuth-44b7be237574be25deb0815a423552d495a60efb.zip DotNetOpenAuth-44b7be237574be25deb0815a423552d495a60efb.tar.gz DotNetOpenAuth-44b7be237574be25deb0815a423552d495a60efb.tar.bz2 |
Updated the rest of the flows except for Device.
Diffstat (limited to 'src/DotNetOpenAuth.Test')
-rw-r--r-- | src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs b/src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs index 830c489..9b937c1 100644 --- a/src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs +++ b/src/DotNetOpenAuth.Test/OAuthWrap/MessageFactoryTests.cs @@ -129,8 +129,7 @@ namespace DotNetOpenAuth.Test.OAuthWrap { public void UserNamePasswordRequest() { var fields = new Dictionary<string, string> { { Protocol.client_id, "abc" }, - { Protocol.wrap_username, "abc" }, - { Protocol.wrap_password, "abc" }, + { Protocol.client_secret, "abc" }, }; IDirectedProtocolMessage request = this.messageFactory.GetNewRequestMessage(this.recipient, fields); Assert.IsInstanceOf(typeof(UserNamePasswordRequest), request); @@ -151,7 +150,7 @@ namespace DotNetOpenAuth.Test.OAuthWrap { public void UserNamePasswordVerificationResponse() { // HTTP 400 Bad Request var fields = new Dictionary<string, string> { - { Protocol.wrap_verification_url, "abc" }, + { Protocol.code, "abc" }, }; var request = new UserNamePasswordRequest(this.recipient.Location, Protocol.Default.Version); Assert.IsInstanceOf( @@ -253,8 +252,8 @@ namespace DotNetOpenAuth.Test.OAuthWrap { [TestCase] public void ClientCredentialsRequest() { var fields = new Dictionary<string, string> { - { Protocol.wrap_name, "abc" }, - { Protocol.wrap_password, "abc" }, + { Protocol.client_id, "abc" }, + { Protocol.client_secret, "abc" }, }; IDirectedProtocolMessage request = this.messageFactory.GetNewRequestMessage(this.recipient, fields); Assert.IsInstanceOf(typeof(ClientCredentialsRequest), request); @@ -274,17 +273,6 @@ namespace DotNetOpenAuth.Test.OAuthWrap { Assert.IsInstanceOf(typeof(AssertionRequest), request); } - [TestCase] - public void AssertionSuccessResponse() { - var fields = new Dictionary<string, string> { - { Protocol.access_token, "abc" }, - }; - var request = new AssertionRequest(this.recipient.Location, Protocol.Default.Version); - Assert.IsInstanceOf( - typeof(AssertionSuccessResponse), - this.messageFactory.GetNewResponseMessage(request, fields)); - } - #endregion } } |