Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Tests/SeguridadObjectMother.cs @ 9:c90492faf268
Se implementa seguridad a través del constructor y no como parámetro
Se valida autenticación al Publicar.
author | juanjose.montesdeocaarbos |
---|---|
date | Sat, 12 Feb 2011 12:22:36 -0300 |
parents | cae27d7eb697 |
children | 475be11edf56 |
line wrap: on
line source
using System; using AltNetHispano.Agendas.Domain; using System.Security.Principal; namespace AltNetHispano.Agendas.Tests { public static class SeguridadObjectMother { public static GenericPrincipal GetGenericPrincipalAutenticadoSinRoles() { return new GenericPrincipal(GetGenericIdentityAutenticado(), null); } public static GenericPrincipal GetGenericPrincipalSinAutenticar() { return new GenericPrincipal(GetGenericIdentitySinAutenticar(), null); } public static GenericIdentity GetGenericIdentityAutenticado() { return new GenericIdentity("neluz"); } public static GenericIdentity GetGenericIdentitySinAutenticar() { return new GenericIdentity(""); } } }