1 // Copyright 2004-2008 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
22 /// Exposes methods on top of <see cref="IResponse"/>
23 /// that are used by unit tests
25 public interface IMockResponse
: IResponse
28 /// Gets the urls the request was redirected to.
30 /// <value>The redirected to.</value>
31 string RedirectedTo { get; }
36 /// <value>The output.</value>
37 new TextWriter Output { set; }
40 /// Sets the cache policy.
42 /// <value>The cache policy.</value>
43 new HttpCachePolicy CachePolicy { set; }
48 /// <value>The output.</value>
49 string OutputContent { get; }
52 /// Gets or sets the URL info.
54 /// <value>The URL info.</value>
55 UrlInfo UrlInfo { get; set; }
58 /// Gets or sets the URL builder.
60 /// <value>The URL builder.</value>
61 IUrlBuilder UrlBuilder { get; set; }