diff Agendas/trunk/src/Agendas.Web.Tests/Controllers/EventoControllerTests.cs @ 233:32e4e0e7a140

Probando de armar tests de Agendas.Web
author juanjose.montesdeocaarbos
date Tue, 04 Oct 2011 20:34:46 -0300
parents
children 51faeabfb9d9 a7daa939ef0c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Agendas/trunk/src/Agendas.Web.Tests/Controllers/EventoControllerTests.cs	Tue Oct 04 20:34:46 2011 -0300
@@ -0,0 +1,44 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using AltNetHispano.Agendas.Domain;
+using AltNetHispano.Agendas.Web.Controllers;
+using AltNetHispano.Agendas.Web.Models;
+using NUnit.Framework;
+
+namespace Agendas.Web.Tests.Controllers
+{
+    [TestFixture]
+    public class EventoControllerTests
+    {
+        [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),
+                                    Ponente = new Guid(),
+                                    TipoEvento = (int)TipoEvento.Van,
+                                    Titulo = "Título 1"
+                                };
+
+            var resultNuevo = eventoController.Nuevo(eventoNew);
+
+            //var eventoPublicar = new EventoPublicarModel
+            //                {
+            //                    NroOrden = 1,
+            //                    Titulo = "Título 1",
+            //                    UrlWiki = "http://www.altnethistpano.org/vans/titulo-1.ashx",
+            //                    DuracionReal = new TimeSpan()
+            //                };
+
+            //var resultPublicar = eventoController.Publicar(eventoPublicar);
+        }
+    }
+}