summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Messaging/HttpRequestInfo.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-09-24 20:57:49 -0700
committerAndrew <andrewarnott@gmail.com>2008-09-24 20:57:49 -0700
commitde6a705de31c11ee5892c94cc9afc5c8e49a90ce (patch)
treeace1f83f585c1e84da5f768cb6ed4dbeecb42d57 /src/DotNetOAuth/Messaging/HttpRequestInfo.cs
parent22341a07b0ba0dc685bb859b0ed82c22fc3c09db (diff)
downloadDotNetOpenAuth-de6a705de31c11ee5892c94cc9afc5c8e49a90ce.zip
DotNetOpenAuth-de6a705de31c11ee5892c94cc9afc5c8e49a90ce.tar.gz
DotNetOpenAuth-de6a705de31c11ee5892c94cc9afc5c8e49a90ce.tar.bz2
Added a scenario test from Appendix A (incomplete but passing so far).
Included in this change are a lot of fixes and additional implementation.
Diffstat (limited to 'src/DotNetOAuth/Messaging/HttpRequestInfo.cs')
-rw-r--r--src/DotNetOAuth/Messaging/HttpRequestInfo.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/DotNetOAuth/Messaging/HttpRequestInfo.cs b/src/DotNetOAuth/Messaging/HttpRequestInfo.cs
index 65b5dcb..bce9ccb 100644
--- a/src/DotNetOAuth/Messaging/HttpRequestInfo.cs
+++ b/src/DotNetOAuth/Messaging/HttpRequestInfo.cs
@@ -56,6 +56,19 @@ namespace DotNetOAuth.Messaging {
}
/// <summary>
+ /// Initializes a new instance of the <see cref="HttpRequestInfo"/> class.
+ /// </summary>
+ /// <param name="message">The message being passed in through a mock transport.</param>
+ internal HttpRequestInfo(IProtocolMessage message) {
+ this.Message = message;
+ }
+
+ /// <summary>
+ /// Gets the message that is being sent over a mock transport (for testing).
+ /// </summary>
+ internal IProtocolMessage Message { get; private set; }
+
+ /// <summary>
/// Gets or sets the verb in the request (i.e. GET, POST, etc.)
/// </summary>
internal string HttpMethod { get; set; }