diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-24 20:57:49 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-24 20:57:49 -0700 |
commit | de6a705de31c11ee5892c94cc9afc5c8e49a90ce (patch) | |
tree | ace1f83f585c1e84da5f768cb6ed4dbeecb42d57 /src/DotNetOAuth.Test/Scenarios.cs | |
parent | 22341a07b0ba0dc685bb859b0ed82c22fc3c09db (diff) | |
download | DotNetOpenAuth-de6a705de31c11ee5892c94cc9afc5c8e49a90ce.zip DotNetOpenAuth-de6a705de31c11ee5892c94cc9afc5c8e49a90ce.tar.gz DotNetOpenAuth-de6a705de31c11ee5892c94cc9afc5c8e49a90ce.tar.bz2 |
Added a scenario test from Appendix A (incomplete but passing so far).
Included in this change are a lot of fixes and additional implementation.
Diffstat (limited to 'src/DotNetOAuth.Test/Scenarios.cs')
-rw-r--r-- | src/DotNetOAuth.Test/Scenarios.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/DotNetOAuth.Test/Scenarios.cs b/src/DotNetOAuth.Test/Scenarios.cs deleted file mode 100644 index 6718b47..0000000 --- a/src/DotNetOAuth.Test/Scenarios.cs +++ /dev/null @@ -1,30 +0,0 @@ -//-----------------------------------------------------------------------
-// <copyright file="Scenarios.cs" company="Andrew Arnott">
-// Copyright (c) Andrew Arnott. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOAuth.Test {
- using DotNetOAuth.Messaging;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
-
- [TestClass]
- public class Scenarios : TestBase {
- [TestMethod]
- public void SpecAppendixAExample() {
- ServiceProvider sp = new ServiceProvider {
- RequestTokenEndpoint = new ServiceProviderEndpoint("https://photos.example.net/request_token", HttpDeliveryMethod.PostRequest),
- UserAuthorizationEndpoint = new ServiceProviderEndpoint("http://photos.example.net/authorize", HttpDeliveryMethod.GetRequest),
- AccessTokenEndpoint = new ServiceProviderEndpoint("https://photos.example.net/access_token", HttpDeliveryMethod.PostRequest),
- };
-
- Consumer consumer = new Consumer {
- ConsumerKey = "dpf43f3p2l4k3l03",
- ConsumerSecret = "kd94hf93k423kf44",
- ServiceProvider = sp,
- };
-
- consumer.RequestUserAuthorization();
- }
- }
-}
|