diff 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 diff
--- a/Agendas/trunk/src/Agendas.Tests/SeguridadObjectMother.cs	Sat Feb 12 11:12:18 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Tests/SeguridadObjectMother.cs	Sat Feb 12 12:22:36 2011 -0300
@@ -11,10 +11,21 @@
             return new GenericPrincipal(GetGenericIdentityAutenticado(), null);
         }
 
-        public static GenericIdentity GetGenericIdentityAutenticado() {
+        public static GenericPrincipal GetGenericPrincipalSinAutenticar()
+        {
+            return new GenericPrincipal(GetGenericIdentitySinAutenticar(), null);
+        }
+
+        public static GenericIdentity GetGenericIdentityAutenticado()
+        {
             return new GenericIdentity("neluz");
         }
 
+        public static GenericIdentity GetGenericIdentitySinAutenticar()
+        {
+            return new GenericIdentity("");
+        }
+
         
     }
 }