annotate Agendas/trunk/src/Agendas.Tests/EventoObjectMother.cs @ 8:cae27d7eb697

Se agregó ISeguridad para validar autenticaciones de usuarios. Agenda.Proponer modificado para validar que solo pueden Proponer eventos los usuarios autenticados.
author juanjose.montesdeocaarbos
date Sat, 12 Feb 2011 11:12:18 -0300
parents 49b572535156
children 05996fa19e04
rev   line source
4
49b572535156 proponer van
nelopauselli
parents:
diff changeset
1 using System;
49b572535156 proponer van
nelopauselli
parents:
diff changeset
2 using AltNetHispano.Agendas.Domain;
49b572535156 proponer van
nelopauselli
parents:
diff changeset
3
49b572535156 proponer van
nelopauselli
parents:
diff changeset
4 namespace AltNetHispano.Agendas.Tests
49b572535156 proponer van
nelopauselli
parents:
diff changeset
5 {
49b572535156 proponer van
nelopauselli
parents:
diff changeset
6 public static class EventoObjectMother
49b572535156 proponer van
nelopauselli
parents:
diff changeset
7 {
49b572535156 proponer van
nelopauselli
parents:
diff changeset
8 public static Van GetVanValidaParaPublicar()
49b572535156 proponer van
nelopauselli
parents:
diff changeset
9 {
49b572535156 proponer van
nelopauselli
parents:
diff changeset
10 return new Van {Fecha = DateTime.Now, Ponente = "jjmontes"};
49b572535156 proponer van
nelopauselli
parents:
diff changeset
11 }
49b572535156 proponer van
nelopauselli
parents:
diff changeset
12
49b572535156 proponer van
nelopauselli
parents:
diff changeset
13 public static Cafe GetCafeValidoParaPublicar()
49b572535156 proponer van
nelopauselli
parents:
diff changeset
14 {
49b572535156 proponer van
nelopauselli
parents:
diff changeset
15 return new Cafe { Fecha = DateTime.Now };
49b572535156 proponer van
nelopauselli
parents:
diff changeset
16 }
49b572535156 proponer van
nelopauselli
parents:
diff changeset
17 }
49b572535156 proponer van
nelopauselli
parents:
diff changeset
18 }