summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs')
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs b/src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs
index 11d7e67..bde8380 100644
--- a/src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs
@@ -23,17 +23,17 @@ namespace DotNetOpenAuth.Test.Mocks {
/// </summary>
public Channel Channel { get; set; }
- bool IChannelBindingElement.PrepareMessageForSending(IProtocolMessage message) {
+ MessageProtections? IChannelBindingElement.PrepareMessageForSending(IProtocolMessage message) {
var replayMessage = message as IReplayProtectedProtocolMessage;
if (replayMessage != null) {
replayMessage.Nonce = "someNonce";
- return true;
+ return MessageProtections.ReplayProtection;
}
- return false;
+ return null;
}
- bool IChannelBindingElement.PrepareMessageForReceiving(IProtocolMessage message) {
+ MessageProtections? IChannelBindingElement.PrepareMessageForReceiving(IProtocolMessage message) {
var replayMessage = message as IReplayProtectedProtocolMessage;
if (replayMessage != null) {
Assert.AreEqual("someNonce", replayMessage.Nonce, "The nonce didn't serialize correctly, or something");
@@ -42,10 +42,10 @@ namespace DotNetOpenAuth.Test.Mocks {
throw new ReplayedMessageException(message);
}
this.messageReceived = true;
- return true;
+ return MessageProtections.ReplayProtection;
}
- return false;
+ return null;
}
#endregion