diff options
Diffstat (limited to 'src/DotNetOpenAuth.Test/OAuthWrap')
-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 } } |