diff Agendas/trunk/src/Agendas.Tests/TestBase.cs @ 54:3059a5f8930f

Code cleanup
author nelopauselli
date Sat, 14 May 2011 13:01:24 -0300
parents 3ebe89c88caa
children db4b1e2cae49
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/TestBase.cs	Sat May 14 12:45:50 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Tests/TestBase.cs	Sat May 14 13:01:24 2011 -0300
@@ -8,13 +8,6 @@
 {
 	public class TestBase
 	{
-		protected static void SetCurrentUser(string username)
-		{
-			var seguridad = new Mock<ISeguridad>();
-			seguridad.Setup(s => s.GetUserName()).Returns(username);
-		    IdentityContext.Current = seguridad.Object;
-		}
-
 		protected static IEventoRepository DefaultEventoRepository
 		{
 			get { return new EventoRepository(); }
@@ -37,11 +30,17 @@
 			PonenteRepository.Clear();
 		}
 
-        [SetUp]
-        public void SetearUsuario()
-        {
-            SetCurrentUser("neluz");
-        }
+		[SetUp]
+		public void SetearUsuario()
+		{
+			SetCurrentUser("neluz");
+		}
 
-    }
+		protected static void SetCurrentUser(string username)
+		{
+			var seguridad = new Mock<ISeguridad>();
+			seguridad.Setup(s => s.GetUserName()).Returns(username);
+			IdentityContext.Current = seguridad.Object;
+		}
+	}
 }
\ No newline at end of file