summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-11-23 23:04:56 -0800
committerAndrew <andrewarnott@gmail.com>2008-11-23 23:04:56 -0800
commite81621138e95624e12db5667c5720cde1f0475d9 (patch)
tree80a8ca1fe36611b99ef790801d90922f489d4aad /src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs
parent87af9a2cf5efade047cef5966d6d05fc40592a85 (diff)
downloadDotNetOpenAuth-e81621138e95624e12db5667c5720cde1f0475d9.zip
DotNetOpenAuth-e81621138e95624e12db5667c5720cde1f0475d9.tar.gz
DotNetOpenAuth-e81621138e95624e12db5667c5720cde1f0475d9.tar.bz2
Added YADIS and other discovery, XRDS, untrusted web requests.
Hundreds of StyleCop messages and some FxCop as well. Some refactoring definitely went into the new files from their DotNetOpenId origins, but there is much more to do.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs')
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs b/src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs
index 7117bc1..af971a0 100644
--- a/src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs
@@ -12,13 +12,13 @@ namespace DotNetOpenAuth.Test.Mocks {
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OAuth.ChannelElements;
- internal class TestWebRequestHandler : IWebRequestHandler {
+ internal class TestWebRequestHandler : IDirectWebRequestHandler {
private StringBuilder postEntity;
/// <summary>
/// Gets or sets the callback used to provide the mock response for the mock request.
/// </summary>
- internal Func<HttpWebRequest, Response> Callback { get; set; }
+ internal Func<HttpWebRequest, DirectWebResponse> Callback { get; set; }
/// <summary>
/// Gets the stream that was written out as if on an HTTP request.
@@ -63,7 +63,7 @@ namespace DotNetOpenAuth.Test.Mocks {
/// <returns>
/// An instance of <see cref="Response"/> describing the response.
/// </returns>
- public Response GetResponse(HttpWebRequest request) {
+ public DirectWebResponse GetResponse(HttpWebRequest request) {
if (this.Callback == null) {
throw new InvalidOperationException("Set the Callback property first.");
}