# HG changeset patch
# User juanjose.montesdeocaarbos
# Date 1317771286 10800
# Node ID 32e4e0e7a140fd3a033c2dd292d5b05502e4faaa
# Parent 806fd94727ce946803a47f80b056fd38a4207518
Probando de armar tests de Agendas.Web
diff -r 806fd94727ce -r 32e4e0e7a140 Agendas/trunk/src/Agendas.Web.Tests/Agendas.Web.Tests.csproj
--- a/Agendas/trunk/src/Agendas.Web.Tests/Agendas.Web.Tests.csproj Mon Oct 03 07:50:54 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web.Tests/Agendas.Web.Tests.csproj Tue Oct 04 20:34:46 2011 -0300
@@ -31,6 +31,9 @@
4
+
+ ..\packages\NHibernate.Castle.3.1.0.4000\lib\Net35\NHibernate.ByteCode.Castle.dll
+
..\packages\NUnit.2.5.10.11092\lib\nunit.framework.dll
@@ -45,6 +48,7 @@
+
@@ -57,6 +61,19 @@
Agendas.Web
+
+
+ Designer
+
+
+ Designer
+
+
+
+
+ Always
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -r 806fd94727ce -r 32e4e0e7a140 Agendas/trunk/src/Agendas.Web.Tests/Controllers/EventoControllerTests.cs
--- /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);
+ }
+ }
+}
diff -r 806fd94727ce -r 32e4e0e7a140 Agendas/trunk/src/Agendas.Web.Tests/hibernate.cfg.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Agendas/trunk/src/Agendas.Web.Tests/hibernate.cfg.xml Tue Oct 04 20:34:46 2011 -0300
@@ -0,0 +1,11 @@
+
+
+
+ NHibernate.Driver.SqlClientDriver
+ AltNetHispano
+ NHibernate.Dialect.MsSql2008Dialect
+
+ web
+ NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle
+
+
\ No newline at end of file