summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-01-03 08:37:01 -0800
committerAndrew <andrewarnott@gmail.com>2009-01-03 08:37:01 -0800
commitbc816ee12352c93eb6c47796c0a9cb76a3f68d0b (patch)
tree19a27ea231f165fef761327e61d88e5c41ad0d4d /src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
parentd1cdbd8cbc5ee5901ff8d4e81ba7b3a84f1188dd (diff)
downloadDotNetOpenAuth-bc816ee12352c93eb6c47796c0a9cb76a3f68d0b.zip
DotNetOpenAuth-bc816ee12352c93eb6c47796c0a9cb76a3f68d0b.tar.gz
DotNetOpenAuth-bc816ee12352c93eb6c47796c0a9cb76a3f68d0b.tar.bz2
Fixed mock CoordinatingChannel to send direct responses and indirect messages while more truly simulating the ordinary channel experience.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs')
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
index d05ddd8..5ac1deb 100644
--- a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
@@ -83,7 +83,7 @@ namespace DotNetOpenAuth.Test.OpenId {
request.ClaimedIdentifier = "http://claimedid";
request.LocalIdentifier = "http://localid";
request.ReturnTo = RPUri;
- rp.Channel.Send(request);
+ rp.Channel.Send(request).Send();
if (positive) {
if (tamper) {
try {
@@ -132,20 +132,20 @@ namespace DotNetOpenAuth.Test.OpenId {
} else {
response = new NegativeAssertionResponse(request) { UserSetupUrl = userSetupUrl };
}
- op.Channel.Send(response);
+ op.Channel.Send(response).Send();
if (positive && !sharedAssociation) {
var checkauthRequest = op.Channel.ReadFromRequest<CheckAuthenticationRequest>();
var checkauthResponse = new CheckAuthenticationResponse(checkauthRequest);
checkauthResponse.IsValid = checkauthRequest.IsValid;
- op.Channel.Send(checkauthResponse);
+ op.Channel.Send(checkauthResponse).Send();
if (!tamper) {
// Respond to the replay attack.
checkauthRequest = op.Channel.ReadFromRequest<CheckAuthenticationRequest>();
checkauthResponse = new CheckAuthenticationResponse(checkauthRequest);
checkauthResponse.IsValid = checkauthRequest.IsValid;
- op.Channel.Send(checkauthResponse);
+ op.Channel.Send(checkauthResponse).Send();
}
}
});