changeset 263:3339d1da6a63

ControllerTests: Refactoring. Limpieza de cosas que no son necesarias.
author juanjose.montesdeocaarbos
date Sat, 22 Oct 2011 14:56:14 -0300
parents b87a4875b2b6
children cef4fc893333
files Agendas/trunk/src/Agendas.Web.Tests/Controllers/MvcControllerTestsBase.cs Agendas/trunk/src/Agendas.Web.Tests/Controllers/PersonaControllerTests.cs
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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<HttpContextBase> HttpCtxStub = new Mock<HttpContextBase>();
         protected readonly ControllerContext ControllerCtx = new ControllerContext();
 
-        protected void SetupTests()
-        {
-            ControllerCtx.HttpContext = HttpCtxStub.Object;
-        }
-
         protected static TModel BindModel<TModel>(Controller controller, IValueProvider valueProvider) where TModel : class
         {
             var binder = ModelBinders.Binders.GetBinder(typeof(TModel));
--- 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]