diff Agendas/trunk/src/Agendas.Web.Tests/Controllers/EventoControllerTests.cs @ 242:5cc1681d3789

Combinar
author juanjose.montesdeocaarbos
date Wed, 05 Oct 2011 07:57:21 -0300
parents a7daa939ef0c 51faeabfb9d9
children 59f8fa2f835e
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web.Tests/Controllers/EventoControllerTests.cs	Wed Oct 05 07:43:09 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web.Tests/Controllers/EventoControllerTests.cs	Wed Oct 05 07:57:21 2011 -0300
@@ -13,38 +13,38 @@
 
 namespace Agendas.Web.Tests.Controllers
 {
-    [TestFixture]
-    public class EventoControllerTests
-    {
-        [SetUp]
-        public void SetearUsuario()
-        {
-            var seguridad = new Mock<ISeguridad>();
-            seguridad.Setup(s => s.GetUserName()).Returns("neluz");
-            IdentityContext.Init(seguridad.Object, new PersonaRepository(NhHelper.GetSessionFactory()));
+	[TestFixture]
+	public class EventoControllerTests
+	{
+		[SetUp]
+		public void SetearUsuario()
+		{
+			var seguridad = new Mock<ISeguridad>();
+			seguridad.Setup(s => s.GetUserName()).Returns("neluz");
+			IdentityContext.Init(seguridad.Object, new PersonaRepository(NhHelper.GetSessionFactory()));
 
-        }
+		}
 
-        [Test]
-        //[Ignore]
-        public void Publicar_Evento()
-        {
-            var eventoController = new EventoController();
+		[Test]
+		[Ignore]
+		public void Publicar_Evento()
+		{
+			var eventoController = new EventoController();
 
-            var eventoNew = new EventoNewModel
-            {
-                Duracion = new TimeSpan(0, 0, 0),
-                Fecha = DateTime.Today.AddDays(5),
-                Hora = new TimeSpan(18, 0, 0),
-                //Ponentes = new[] { Guid.NewGuid() },
-                TipoEvento = (int)TipoEvento.Van,
-                Titulo = "Título 1"
-            };
+			var eventoNew = new EventoNewModel
+			                	{
+			                		Duracion = new TimeSpan(0, 0, 0),
+			                		Fecha = DateTime.Today.AddDays(5),
+			                		Hora = new TimeSpan(18, 0, 0),
+			                		Ponentes = new[] {Guid.NewGuid()},
+			                		TipoEvento = (int) TipoEvento.Van,
+			                		Titulo = "Título 1"
+			                	};
 
-            using (new RequestEmulator(NhHelper.GetSessionFactory()))
-            {
-                var resultNuevo = eventoController.Nuevo(eventoNew);
-            }
+			using (new RequestEmulator(NhHelper.GetSessionFactory()))
+			{
+				var resultNuevo = eventoController.Nuevo(eventoNew);
+			}
 
             var eventoPublicar = new EventoPublicarModel
                                      {
@@ -61,4 +61,4 @@
         }
     }
 
-}
+}
\ No newline at end of file