From 830cb6a50b134a4ed60581a7978972aafdd8b2ee Mon Sep 17 00:00:00 2001 From: ayende Date: Tue, 8 May 2007 20:52:42 +0000 Subject: [PATCH] BaseControllerTests will use ControllerLifecycleExecutor to initialize any helpers/filters. git-svn-id: https://svn.castleproject.org/svn/castle/trunk@3788 73e77b4c-caa6-f847-a29a-24ab75ae54b6 --- MonoRail/Castle.MonoRail.TestSupport/BaseControllerTest.cs | 3 +++ .../Castle.MonoRail.TestSupport-vs2005.csproj | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/MonoRail/Castle.MonoRail.TestSupport/BaseControllerTest.cs b/MonoRail/Castle.MonoRail.TestSupport/BaseControllerTest.cs index 9c3dd8fed..5d4875194 100644 --- a/MonoRail/Castle.MonoRail.TestSupport/BaseControllerTest.cs +++ b/MonoRail/Castle.MonoRail.TestSupport/BaseControllerTest.cs @@ -65,6 +65,9 @@ namespace Castle.MonoRail.TestSupport BuildRailsContext(areaName, controllerName, actionName); controller.InitializeFieldsFromServiceProvider(context); controller.InitializeControllerState(areaName, controllerName, actionName); + ControllerLifecycleExecutor executor = new ControllerLifecycleExecutor(controller, context); + executor.Service(context); + executor.InitializeController(controller.AreaName, controller.Name, controller.Action); } private void BuildRailsContext(string areaName, string controllerName, string actionName) diff --git a/MonoRail/Castle.MonoRail.TestSupport/Castle.MonoRail.TestSupport-vs2005.csproj b/MonoRail/Castle.MonoRail.TestSupport/Castle.MonoRail.TestSupport-vs2005.csproj index c423931bd..3f4077335 100644 --- a/MonoRail/Castle.MonoRail.TestSupport/Castle.MonoRail.TestSupport-vs2005.csproj +++ b/MonoRail/Castle.MonoRail.TestSupport/Castle.MonoRail.TestSupport-vs2005.csproj @@ -70,6 +70,10 @@ prompt + + False + ..\..\build\net-2.0\debug\Castle.Core.dll + nunit.framework ..\..\build\net-2.0\debug\nunit.framework.dll -- 2.11.4.GIT