Fixing an issue with output parameters that are of type IntPtr
[castle.git] / MonoRail / Castle.MonoRail.Framework / Test / IMockRequest.cs
blobf6935b1053d876dea8c3fbc3c7e7a0f66650d25f
1 // Copyright 2004-2008 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 accept header.
27 /// </summary>
28 /// <value>The accept header.</value>
29 new string AcceptHeader { set; }
31 /// <summary>
32 /// Sets the path info.
33 /// </summary>
34 /// <value>The path info.</value>
35 new string PathInfo { set; }
37 /// <summary>
38 /// Sets a value indicating whether this
39 /// requeest is from a local address.
40 /// </summary>
41 /// <value><c>true</c> if this instance is local; otherwise, <c>false</c>.</value>
42 new bool IsLocal { set; }
44 /// <summary>
45 /// Sets the raw URL.
46 /// </summary>
47 /// <value>The raw URL.</value>
48 new string RawUrl { set; }
50 /// <summary>
51 /// Sets the URI.
52 /// </summary>
53 /// <value>The URI.</value>
54 new Uri Uri { set; }
56 /// <summary>
57 /// Sets the HTTP method.
58 /// </summary>
59 /// <value>The HTTP method.</value>
60 new string HttpMethod { set; }
62 /// <summary>
63 /// Sets the file path.
64 /// </summary>
65 /// <value>The file path.</value>
66 new string FilePath { set; }
68 /// <summary>
69 /// Sets the user languages.
70 /// </summary>
71 /// <value>The user languages.</value>
72 new string[] UserLanguages { set; }
74 /// <summary>
75 /// Sets the IP host address of the remote client.
76 /// </summary>
77 /// <value>The IP address of the remote client.</value>
78 new string UserHostAddress { set; }