summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId')
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/AssociationHandshakeTests.cs10
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs8
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs6
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs4
4 files changed, 14 insertions, 14 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/AssociationHandshakeTests.cs b/src/DotNetOpenAuth.Test/OpenId/AssociationHandshakeTests.cs
index 5e356a0..a6fb9de 100644
--- a/src/DotNetOpenAuth.Test/OpenId/AssociationHandshakeTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/AssociationHandshakeTests.cs
@@ -144,7 +144,7 @@ namespace DotNetOpenAuth.Test.OpenId {
AssociateUnsuccessfulResponse renegotiateResponse = new AssociateUnsuccessfulResponse(request);
renegotiateResponse.AssociationType = "HMAC-UNKNOWN";
renegotiateResponse.SessionType = "DH-UNKNOWN";
- op.Channel.Send(renegotiateResponse).Send();
+ op.Channel.Send(renegotiateResponse);
});
coordinator.Run();
}
@@ -168,7 +168,7 @@ namespace DotNetOpenAuth.Test.OpenId {
AssociateUnsuccessfulResponse renegotiateResponse = new AssociateUnsuccessfulResponse(request);
renegotiateResponse.AssociationType = protocol.Args.SignatureAlgorithm.HMAC_SHA1;
renegotiateResponse.SessionType = protocol.Args.SessionType.NoEncryption;
- op.Channel.Send(renegotiateResponse).Send();
+ op.Channel.Send(renegotiateResponse);
});
coordinator.Run();
}
@@ -193,7 +193,7 @@ namespace DotNetOpenAuth.Test.OpenId {
AssociateUnsuccessfulResponse renegotiateResponse = new AssociateUnsuccessfulResponse(request);
renegotiateResponse.AssociationType = protocol.Args.SignatureAlgorithm.HMAC_SHA1;
renegotiateResponse.SessionType = protocol.Args.SessionType.DH_SHA256;
- op.Channel.Send(renegotiateResponse).Send();
+ op.Channel.Send(renegotiateResponse);
});
coordinator.Run();
}
@@ -218,7 +218,7 @@ namespace DotNetOpenAuth.Test.OpenId {
AssociateUnsuccessfulResponse renegotiateResponse = new AssociateUnsuccessfulResponse(request);
renegotiateResponse.AssociationType = protocol.Args.SignatureAlgorithm.HMAC_SHA1;
renegotiateResponse.SessionType = protocol.Args.SessionType.DH_SHA1;
- op.Channel.Send(renegotiateResponse).Send();
+ op.Channel.Send(renegotiateResponse);
// Receive second-try
request = op.Channel.ReadFromRequest<AssociateRequest>();
@@ -227,7 +227,7 @@ namespace DotNetOpenAuth.Test.OpenId {
renegotiateResponse = new AssociateUnsuccessfulResponse(request);
renegotiateResponse.AssociationType = protocol.Args.SignatureAlgorithm.HMAC_SHA256;
renegotiateResponse.SessionType = protocol.Args.SessionType.DH_SHA256;
- op.Channel.Send(renegotiateResponse).Send();
+ op.Channel.Send(renegotiateResponse);
});
coordinator.Run();
}
diff --git a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
index 1bfeaa9..18721b6 100644
--- a/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs
@@ -81,7 +81,7 @@ namespace DotNetOpenAuth.Test.OpenId {
request.ClaimedIdentifier = "http://claimedid";
request.LocalIdentifier = "http://localid";
request.ReturnTo = RPUri;
- rp.Channel.Send(request).Send();
+ rp.Channel.Send(request);
if (positive) {
if (tamper) {
try {
@@ -130,20 +130,20 @@ namespace DotNetOpenAuth.Test.OpenId {
} else {
response = new NegativeAssertionResponse(request) { UserSetupUrl = userSetupUrl };
}
- op.Channel.Send(response).Send();
+ op.Channel.Send(response);
if (positive && !sharedAssociation) {
var checkauthRequest = op.Channel.ReadFromRequest<CheckAuthenticationRequest>();
var checkauthResponse = new CheckAuthenticationResponse(checkauthRequest);
checkauthResponse.IsValid = checkauthRequest.IsValid;
- op.Channel.Send(checkauthResponse).Send();
+ op.Channel.Send(checkauthResponse);
if (!tamper) {
// Respond to the replay attack.
checkauthRequest = op.Channel.ReadFromRequest<CheckAuthenticationRequest>();
checkauthResponse = new CheckAuthenticationResponse(checkauthRequest);
checkauthResponse.IsValid = checkauthRequest.IsValid;
- op.Channel.Send(checkauthResponse).Send();
+ op.Channel.Send(checkauthResponse);
}
}
});
diff --git a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs
index a9217eb..4f2c574 100644
--- a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/ExtensionsBindingElementTests.cs
@@ -94,7 +94,7 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements {
Protocol protocol = Protocol.Default;
var op = this.CreateProvider();
IndirectSignedResponse response = CreateResponseWithExtensions(protocol);
- op.Channel.Send(response);
+ op.Channel.PrepareResponse(response);
ITamperResistantOpenIdMessage signedResponse = (ITamperResistantOpenIdMessage)response;
string extensionAliasKey = signedResponse.ExtraData.Single(kv => kv.Value == MockOpenIdExtension.MockTypeUri).Key;
Assert.IsTrue(extensionAliasKey.StartsWith("openid.ns."));
@@ -124,10 +124,10 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements {
},
op => {
RegisterMockExtension(op.Channel);
- op.Channel.Send(CreateResponseWithExtensions(protocol)).Send();
+ op.Channel.Send(CreateResponseWithExtensions(protocol));
op.GetRequest().Response.Send(); // check_auth
op.SecuritySettings.SignOutgoingExtensions = false;
- op.Channel.Send(CreateResponseWithExtensions(protocol)).Send();
+ op.Channel.Send(CreateResponseWithExtensions(protocol));
op.GetRequest().Response.Send(); // check_auth
}
);
diff --git a/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs b/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs
index aee9f30..e2ff245 100644
--- a/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/Extensions/ExtensionTestUtilities.cs
@@ -47,7 +47,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions {
requestBase.Extensions.Add(extension);
}
- rp.Channel.Send(requestBase).Send();
+ rp.Channel.Send(requestBase);
var response = rp.Channel.ReadFromRequest<PositiveAssertionResponse>();
var receivedResponses = response.Extensions.Cast<IOpenIdMessageExtension>();
@@ -65,7 +65,7 @@ namespace DotNetOpenAuth.Test.OpenId.Extensions {
response.Extensions.Add(extensionResponse);
}
- op.Channel.Send(response).Send();
+ op.Channel.Send(response);
});
coordinator.Run();
}