annotate 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
rev   line source
233
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
1 using System;
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
2 using System.Collections.Generic;
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
3 using System.Linq;
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
4 using System.Text;
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
5 using AltNetHispano.Agendas.Domain;
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
6 using AltNetHispano.Agendas.Web.Controllers;
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
7 using AltNetHispano.Agendas.Web.Models;
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
8 using NUnit.Framework;
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
9
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
10 namespace Agendas.Web.Tests.Controllers
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
11 {
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
12 [TestFixture]
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
13 public class EventoControllerTests
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
14 {
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
15 [Test]
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
16 [Ignore]
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
17 public void Publicar_Evento()
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
18 {
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
19 var eventoController = new EventoController();
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
20
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
21 var eventoNew = new EventoNewModel
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
22 {
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
23 Duracion = new TimeSpan(0, 0, 0),
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
24 Fecha = DateTime.Today.AddDays(5),
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
25 Hora = new TimeSpan(18, 0, 0),
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
26 Ponente = new Guid(),
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
27 TipoEvento = (int)TipoEvento.Van,
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
28 Titulo = "Título 1"
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
29 };
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
30
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
31 var resultNuevo = eventoController.Nuevo(eventoNew);
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
32
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
33 //var eventoPublicar = new EventoPublicarModel
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
34 // {
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
35 // NroOrden = 1,
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
36 // Titulo = "Título 1",
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
37 // UrlWiki = "http://www.altnethistpano.org/vans/titulo-1.ashx",
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
38 // DuracionReal = new TimeSpan()
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
39 // };
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
40
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
41 //var resultPublicar = eventoController.Publicar(eventoPublicar);
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
42 }
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
43 }
32e4e0e7a140 Probando de armar tests de Agendas.Web
juanjose.montesdeocaarbos
parents:
diff changeset
44 }