view Agendas/trunk/src/Agendas.Tests/SeguridadObjectMother.cs @ 49:be7a9720fb96

Diagramas
author nelopauselli
date Fri, 13 May 2011 22:59:00 -0300
parents 475be11edf56
children
line wrap: on
line source

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("");
        }

        
    }
}