summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks/TestDirectResponseMessageWithHttpStatus.cs
blob: 28345d61da7a934be774cdc53cd71d0dd51f3be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//-----------------------------------------------------------------------
// <copyright file="TestDirectResponseMessageWithHttpStatus.cs" company="Outercurve Foundation">
//     Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.Test.Mocks {
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Net;
	using System.Text;
	using DotNetOpenAuth.Messaging;

	internal class TestDirectResponseMessageWithHttpStatus : TestMessage, IHttpDirectResponse {
		/// <summary>
		/// Initializes a new instance of the <see cref="TestDirectResponseMessageWithHttpStatus"/> class.
		/// </summary>
		internal TestDirectResponseMessageWithHttpStatus() {
		}

		#region IHttpDirectResponse Members

		/// <summary>
		/// Gets or sets the HTTP status code that the direct respones should be sent with.
		/// </summary>
		public HttpStatusCode HttpStatusCode { get; set;  }

		/// <summary>
		/// Gets the HTTP headers to add to the response.
		/// </summary>
		/// <value>May be an empty collection, but must not be <c>null</c>.</value>
		public WebHeaderCollection Headers {
			get { return new WebHeaderCollection(); }
		}

		#endregion
	}
}