diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-08 16:22:58 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-08 16:22:58 -0700 |
commit | d9c0ee017807cc17132e9c760d274afffc9b981c (patch) | |
tree | 28a79463a760a10c4d67cbac48f9a6af5cd25b32 /src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs | |
parent | 1c3247abc8fb37405d0602e5037b3cebbe8e944a (diff) | |
download | DotNetOpenAuth-d9c0ee017807cc17132e9c760d274afffc9b981c.zip DotNetOpenAuth-d9c0ee017807cc17132e9c760d274afffc9b981c.tar.gz DotNetOpenAuth-d9c0ee017807cc17132e9c760d274afffc9b981c.tar.bz2 |
Split up ITokenManager into two derived interfaces to better fit Consumer and Service Provider scenarios.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs b/src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs index e8b1f79..e04edeb 100644 --- a/src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs +++ b/src/DotNetOpenAuth.Test/OAuth/OAuthCoordinator.cs @@ -8,6 +8,7 @@ namespace DotNetOpenAuth.Test { using System; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OAuth; + using DotNetOpenAuth.OAuth.ChannelElements; using DotNetOpenAuth.Test.Mocks; /// <summary> @@ -47,15 +48,14 @@ namespace DotNetOpenAuth.Test { serviceTokenManager.AddConsumer(this.consumerDescription); // Prepare channels that will pass messages directly back and forth. - CoordinatingOAuthChannel consumerChannel = new CoordinatingOAuthChannel(consumerSigningElement, true, consumerTokenManager); - CoordinatingOAuthChannel serviceProviderChannel = new CoordinatingOAuthChannel(spSigningElement, false, serviceTokenManager); + CoordinatingOAuthChannel consumerChannel = new CoordinatingOAuthChannel(consumerSigningElement, (IConsumerTokenManager)consumerTokenManager); + CoordinatingOAuthChannel serviceProviderChannel = new CoordinatingOAuthChannel(spSigningElement, (IServiceProviderTokenManager)serviceTokenManager); consumerChannel.RemoteChannel = serviceProviderChannel; serviceProviderChannel.RemoteChannel = consumerChannel; // Prepare the Consumer and Service Provider objects WebConsumer consumer = new WebConsumer(this.serviceDescription, consumerTokenManager) { OAuthChannel = consumerChannel, - ConsumerKey = this.consumerDescription.ConsumerKey, }; ServiceProvider serviceProvider = new ServiceProvider(this.serviceDescription, serviceTokenManager) { OAuthChannel = serviceProviderChannel, |