Removed untyped contructor from ComponentRegistration and add a protected setter.
[castle.git] / Experiments / Generator / Generators / Scaffold / Templates / Test.cs
blob94decf184db1cc80109cdbd9d1ab5673d22409f6
1 using NUnit.Framework;
2 using Castle.MonoRail.TestSupport;
3 using <%= ModelsNamespace %>;
5 namespace <%= TestsNamespace %>
7 /// <summary>
8 /// Classe de test du controleur de <%= PluralHumanName %>
9 /// </summary>
10 [TestFixture]
11 public class <%= ControllerName %>ControllerTest : ControllerTestCase
14 [Test]
15 public void Index()
17 DoGet("<%= ControllerFileName %>/index.aspx");
19 AssertRedirectedTo("/<%= ControllerFileName %>/list.aspx");
22 [Test]
23 public void List()
25 DoGet("<%= ControllerFileName %>/list.aspx");
27 AssertSuccess();