Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Tests/SeguridadObjectMother.cs @ 15:08b9e96132a5
Persistimos los eventos de la agenda
author | nelo@MTEySS.neluz.int |
---|---|
date | Mon, 14 Mar 2011 00:14:09 -0300 |
parents | c90492faf268 |
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(""); } } }