# HG changeset patch # User juanjose.montesdeocaarbos # Date 1319306174 10800 # Node ID 3339d1da6a6353de2616f2f27071c93baaa26348 # Parent b87a4875b2b62dd29b4c8c50f86dbe56a1e3669a ControllerTests: Refactoring. Limpieza de cosas que no son necesarias. diff -r b87a4875b2b6 -r 3339d1da6a63 Agendas/trunk/src/Agendas.Web.Tests/Controllers/MvcControllerTestsBase.cs --- a/Agendas/trunk/src/Agendas.Web.Tests/Controllers/MvcControllerTestsBase.cs Sat Oct 22 14:08:30 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web.Tests/Controllers/MvcControllerTestsBase.cs Sat Oct 22 14:56:14 2011 -0300 @@ -6,14 +6,8 @@ { public class MvcControllerTestsBase { - protected readonly Mock HttpCtxStub = new Mock(); protected readonly ControllerContext ControllerCtx = new ControllerContext(); - protected void SetupTests() - { - ControllerCtx.HttpContext = HttpCtxStub.Object; - } - protected static TModel BindModel(Controller controller, IValueProvider valueProvider) where TModel : class { var binder = ModelBinders.Binders.GetBinder(typeof(TModel)); diff -r b87a4875b2b6 -r 3339d1da6a63 Agendas/trunk/src/Agendas.Web.Tests/Controllers/PersonaControllerTests.cs --- a/Agendas/trunk/src/Agendas.Web.Tests/Controllers/PersonaControllerTests.cs Sat Oct 22 14:08:30 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web.Tests/Controllers/PersonaControllerTests.cs Sat Oct 22 14:56:14 2011 -0300 @@ -28,9 +28,7 @@ public void Setup() { NhHelperTest.CleanDb(); - //PopulatePersona(); SetearUsuario(); - SetupTests(); } [Test]