Minor changes to improve testability of helpers
[castle.git] / MonoRail / Castle.MonoRail.Framework / Test / IMockRequest.cs
blob8f1713f213b045483da61eeb85cf6b57617fd2fa
1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.MonoRail.Framework.Test
17 using System;
19 /// <summary>
20 /// Exposes methods on top of <see cref="IRequest"/>
21 /// that can be useful to write unit tests
22 /// </summary>
23 public interface IMockRequest : IRequest
25 /// <summary>
26 /// Sets the path info.
27 /// </summary>
28 /// <value>The path info.</value>
29 new string PathInfo { set; }
31 /// <summary>
32 /// Sets a value indicating whether this
33 /// requeest is from a local address.
34 /// </summary>
35 /// <value><c>true</c> if this instance is local; otherwise, <c>false</c>.</value>
36 new bool IsLocal { set; }
38 /// <summary>
39 /// Sets the raw URL.
40 /// </summary>
41 /// <value>The raw URL.</value>
42 new string RawUrl { set; }
44 /// <summary>
45 /// Sets the URI.
46 /// </summary>
47 /// <value>The URI.</value>
48 new Uri Uri { set; }
50 /// <summary>
51 /// Sets the HTTP method.
52 /// </summary>
53 /// <value>The HTTP method.</value>
54 new String HttpMethod { set; }
56 /// <summary>
57 /// Sets the file path.
58 /// </summary>
59 /// <value>The file path.</value>
60 new String FilePath { set; }
62 /// <summary>
63 /// Sets the user languages.
64 /// </summary>
65 /// <value>The user languages.</value>
66 new String[] UserLanguages { set; }
68 /// <summary>
69 /// Sets the IP host address of the remote client.
70 /// </summary>
71 /// <value>The IP address of the remote client.</value>
72 new string UserHostAddress { set; }