view Agendas/trunk/src/Agendas.Tests/SeguridadObjectMother.cs @ 10:c62b77fc33f4

website inicial
author nelo@MTEySS.neluz.int
date Sun, 13 Mar 2011 18:51:06 -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("");
        }

        
    }
}