summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth.Test/Scenarios/AppendixScenarios.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-09-30 08:32:34 -0700
committerAndrew <andrewarnott@gmail.com>2008-10-02 07:33:59 -0700
commit1b9d589c7ed1cf7648ee7abc9150def40d6274b3 (patch)
tree0b8204759ba39cb96eca285d74488c91df7fb941 /src/DotNetOAuth.Test/Scenarios/AppendixScenarios.cs
parent08a2ca3fdbe337ba11575cf7893ab547536bb4e2 (diff)
downloadDotNetOpenAuth-1b9d589c7ed1cf7648ee7abc9150def40d6274b3.zip
DotNetOpenAuth-1b9d589c7ed1cf7648ee7abc9150def40d6274b3.tar.gz
DotNetOpenAuth-1b9d589c7ed1cf7648ee7abc9150def40d6274b3.tar.bz2
StyleCop work and adding support for including extra parameters where the spec allows it.
Diffstat (limited to 'src/DotNetOAuth.Test/Scenarios/AppendixScenarios.cs')
-rw-r--r--src/DotNetOAuth.Test/Scenarios/AppendixScenarios.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOAuth.Test/Scenarios/AppendixScenarios.cs b/src/DotNetOAuth.Test/Scenarios/AppendixScenarios.cs
index ee574c9..66e8b5f 100644
--- a/src/DotNetOAuth.Test/Scenarios/AppendixScenarios.cs
+++ b/src/DotNetOAuth.Test/Scenarios/AppendixScenarios.cs
@@ -39,7 +39,7 @@ namespace DotNetOAuth.Test {
Coordinator coordinator = new Coordinator(
channel => {
consumer.Channel = channel;
- consumer.RequestUserAuthorization(new Uri("http://printer.example.com/request_token_ready"), null);
+ consumer.RequestUserAuthorization(new Uri("http://printer.example.com/request_token_ready"), null, null);
string accessToken = consumer.ProcessUserAuthorization();
var photoRequest = consumer.CreateAuthorizedRequestInternal(accessPhotoEndpoint, accessToken);
Response protectedPhoto = channel.RequestProtectedResource(photoRequest);
@@ -52,12 +52,12 @@ namespace DotNetOAuth.Test {
tokenManager.AddConsumer(consumer.ConsumerKey, consumer.ConsumerSecret);
sp.Channel = channel;
var requestTokenMessage = sp.ReadTokenRequest();
- sp.SendUnauthorizedTokenResponse(requestTokenMessage);
+ sp.SendUnauthorizedTokenResponse(requestTokenMessage, null);
var authRequest = sp.ReadAuthorizationRequest();
tokenManager.AuthorizeRequestToken(authRequest.RequestToken);
sp.SendAuthorizationResponse(authRequest);
var accessRequest = sp.ReadAccessTokenRequest();
- sp.SendAccessToken(accessRequest);
+ sp.SendAccessToken(accessRequest, null);
string accessToken = sp.GetAccessTokenInRequest();
channel.SendDirectRawResponse(new Response {
ResponseStream = new MemoryStream(new byte[] { 0x33, 0x66 }),