1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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
20 /// Exposes methods on top of <see cref="IRequest"/>
21 /// that can be useful to write unit tests
23 public interface IMockRequest
: IRequest
26 /// Sets the path info.
28 /// <value>The path info.</value>
29 new string PathInfo { set; }
32 /// Sets a value indicating whether this
33 /// requeest is from a local address.
35 /// <value><c>true</c> if this instance is local; otherwise, <c>false</c>.</value>
36 new bool IsLocal { set; }
41 /// <value>The raw URL.</value>
42 new string RawUrl { set; }
47 /// <value>The URI.</value>
51 /// Sets the HTTP method.
53 /// <value>The HTTP method.</value>
54 new String HttpMethod { set; }
57 /// Sets the file path.
59 /// <value>The file path.</value>
60 new String FilePath { set; }
63 /// Sets the user languages.
65 /// <value>The user languages.</value>
66 new String
[] UserLanguages { set; }
69 /// Sets the IP host address of the remote client.
71 /// <value>The IP address of the remote client.</value>
72 new string UserHostAddress { set; }