diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-13 17:20:53 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-13 17:20:53 -0700 |
commit | 09722c436047dccfb6b6294906013786f78d5d53 (patch) | |
tree | b266c794ee5662235063e0ec37d6b938674084f6 /src/DotNetOAuth.Test/Messaging/MessagingTestBase.cs | |
parent | f665e1e639319918385fcc8397f8c0d5009e3bdd (diff) | |
download | DotNetOpenAuth-09722c436047dccfb6b6294906013786f78d5d53.zip DotNetOpenAuth-09722c436047dccfb6b6294906013786f78d5d53.tar.gz DotNetOpenAuth-09722c436047dccfb6b6294906013786f78d5d53.tar.bz2 |
Refactored several Messaging classes into the Messaging.Bindings namespace.
Diffstat (limited to 'src/DotNetOAuth.Test/Messaging/MessagingTestBase.cs')
-rw-r--r-- | src/DotNetOAuth.Test/Messaging/MessagingTestBase.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/DotNetOAuth.Test/Messaging/MessagingTestBase.cs b/src/DotNetOAuth.Test/Messaging/MessagingTestBase.cs index 61be6a7..b0b4eba 100644 --- a/src/DotNetOAuth.Test/Messaging/MessagingTestBase.cs +++ b/src/DotNetOAuth.Test/Messaging/MessagingTestBase.cs @@ -11,6 +11,7 @@ namespace DotNetOAuth.Test { using System.Net;
using System.Xml;
using DotNetOAuth.Messaging;
+ using DotNetOAuth.Messaging.Bindings;
using DotNetOAuth.Test.Mocks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -53,22 +54,22 @@ namespace DotNetOAuth.Test { return request;
}
- internal static Channel CreateChannel(ChannelProtection capabilityAndRecognition) {
+ internal static Channel CreateChannel(MessageProtection capabilityAndRecognition) {
return CreateChannel(capabilityAndRecognition, capabilityAndRecognition);
}
- internal static Channel CreateChannel(ChannelProtection capability, ChannelProtection recognition) {
+ internal static Channel CreateChannel(MessageProtection capability, MessageProtection recognition) {
bool signing = false, expiration = false, replay = false;
var bindingElements = new List<IChannelBindingElement>();
- if (capability >= ChannelProtection.TamperProtection) {
+ if (capability >= MessageProtection.TamperProtection) {
bindingElements.Add(new MockSigningBindingElement());
signing = true;
}
- if (capability >= ChannelProtection.Expiration) {
- bindingElements.Add(new StandardMessageExpirationBindingElement());
+ if (capability >= MessageProtection.Expiration) {
+ bindingElements.Add(new StandardExpirationBindingElement());
expiration = true;
}
- if (capability >= ChannelProtection.ReplayProtection) {
+ if (capability >= MessageProtection.ReplayProtection) {
bindingElements.Add(new MockReplayProtectionBindingElement());
replay = true;
}
|