summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth.Test/Scenarios/CoordinatingOAuthChannel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOAuth.Test/Scenarios/CoordinatingOAuthChannel.cs')
-rw-r--r--src/DotNetOAuth.Test/Scenarios/CoordinatingOAuthChannel.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DotNetOAuth.Test/Scenarios/CoordinatingOAuthChannel.cs b/src/DotNetOAuth.Test/Scenarios/CoordinatingOAuthChannel.cs
index 4c34a0d..abd95d1 100644
--- a/src/DotNetOAuth.Test/Scenarios/CoordinatingOAuthChannel.cs
+++ b/src/DotNetOAuth.Test/Scenarios/CoordinatingOAuthChannel.cs
@@ -13,6 +13,7 @@ namespace DotNetOAuth.Test.Scenarios {
using DotNetOAuth.Messaging.Bindings;
using DotNetOAuth.Messaging;
using System.Threading;
+ using Microsoft.VisualStudio.TestTools.UnitTesting;
/// <summary>
/// A special channel used in test simulations to pass messages directly between two parties.
@@ -37,6 +38,7 @@ using System.Threading;
private IProtocolMessage incomingMessage;
protected override IProtocolMessage RequestInternal(IDirectedProtocolMessage request) {
+ TestBase.TestLogger.InfoFormat("Sending request: {0}", request);
// Drop the outgoing message in the other channel's in-slot and let them know it's there.
RemoteChannel.incomingMessage = request;
RemoteChannel.incomingMessageSignal.Set();
@@ -45,11 +47,13 @@ using System.Threading;
}
protected override void SendDirectMessageResponse(IProtocolMessage response) {
+ TestBase.TestLogger.InfoFormat("Sending response: {0}", response);
RemoteChannel.incomingMessage = response;
RemoteChannel.incomingMessageSignal.Set();
}
protected override void SendIndirectMessage(IDirectedProtocolMessage message) {
+ TestBase.TestLogger.InfoFormat("Sending indirect message: {0}", message);
// In this mock transport, direct and indirect messages are the same.
SendDirectMessageResponse(message);
}