Removed untyped contructor from ComponentRegistration and add a protected setter.
[castle.git] / MonoRail / Castle.MonoRail.Framework / Test / IMockResponse.cs
blobb788bd22c0f78b9f8acc6b6c7201868b4876fa34
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.IO;
18 using System.Web;
19 using Services;
21 /// <summary>
22 /// Exposes methods on top of <see cref="IResponse"/>
23 /// that are used by unit tests
24 /// </summary>
25 public interface IMockResponse : IResponse
27 /// <summary>
28 /// Gets the urls the request was redirected to.
29 /// </summary>
30 /// <value>The redirected to.</value>
31 string RedirectedTo { get; }
33 /// <summary>
34 /// Sets the output.
35 /// </summary>
36 /// <value>The output.</value>
37 new TextWriter Output { set; }
39 /// <summary>
40 /// Sets the cache policy.
41 /// </summary>
42 /// <value>The cache policy.</value>
43 new HttpCachePolicy CachePolicy { set; }
45 /// <summary>
46 /// Gets the output.
47 /// </summary>
48 /// <value>The output.</value>
49 string OutputContent { get; }
51 /// <summary>
52 /// Gets or sets the URL info.
53 /// </summary>
54 /// <value>The URL info.</value>
55 UrlInfo UrlInfo { get; set; }
57 /// <summary>
58 /// Gets or sets the URL builder.
59 /// </summary>
60 /// <value>The URL builder.</value>
61 IUrlBuilder UrlBuilder { get; set; }