diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-06 17:42:12 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-06 17:42:12 -0800 |
commit | 5c50924246387b6d9a5ce668fb389b5ec7d93434 (patch) | |
tree | f86d6f629609450619e30533b1c0c4629111050b /src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs | |
parent | ab1e20ef732e482706cf5cea47e371f90476c8f3 (diff) | |
download | DotNetOpenAuth-5c50924246387b6d9a5ce668fb389b5ec7d93434.zip DotNetOpenAuth-5c50924246387b6d9a5ce668fb389b5ec7d93434.tar.gz DotNetOpenAuth-5c50924246387b6d9a5ce668fb389b5ec7d93434.tar.bz2 |
Unit test build break fixes.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs b/src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs index 1733f17..58a2367 100644 --- a/src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs +++ b/src/DotNetOpenAuth.Test/Mocks/MockReplayProtectionBindingElement.cs @@ -5,6 +5,9 @@ //----------------------------------------------------------------------- namespace DotNetOpenAuth.Test.Mocks { + using System.Threading; + using System.Threading.Tasks; + using DotNetOpenAuth.Messaging; using DotNetOpenAuth.Messaging.Bindings; using NUnit.Framework; @@ -23,17 +26,17 @@ namespace DotNetOpenAuth.Test.Mocks { /// </summary> public Channel Channel { get; set; } - MessageProtections? IChannelBindingElement.ProcessOutgoingMessage(IProtocolMessage message) { + Task<MessageProtections?> IChannelBindingElement.ProcessOutgoingMessageAsync(IProtocolMessage message, CancellationToken cancellationToken) { var replayMessage = message as IReplayProtectedProtocolMessage; if (replayMessage != null) { replayMessage.Nonce = "someNonce"; - return MessageProtections.ReplayProtection; + return MessageProtectionTasks.ReplayProtection; } - return null; + return MessageProtectionTasks.Null; } - MessageProtections? IChannelBindingElement.ProcessIncomingMessage(IProtocolMessage message) { + Task<MessageProtections?> IChannelBindingElement.ProcessIncomingMessageAsync(IProtocolMessage message, CancellationToken cancellationToken) { var replayMessage = message as IReplayProtectedProtocolMessage; if (replayMessage != null) { Assert.AreEqual("someNonce", replayMessage.Nonce, "The nonce didn't serialize correctly, or something"); @@ -42,10 +45,10 @@ namespace DotNetOpenAuth.Test.Mocks { throw new ReplayedMessageException(message); } this.messageReceived = true; - return MessageProtections.ReplayProtection; + return MessageProtectionTasks.ReplayProtection; } - return null; + return MessageProtectionTasks.Null; } #endregion |