Ejemplo n.º 1
0
        public static void SimulateLogin()
        {
            TestIdentity identity = new TestIdentity("User", "password");
            TestPrincipal p = new TestPrincipal(identity);

            Csla.ApplicationContext.User = p;
            //System.Threading.Thread.CurrentPrincipal = p;
        }
Ejemplo n.º 2
0
        public static void SimulateLogin()
        {
            TestIdentity  identity = new TestIdentity("User", "password");
            TestPrincipal p        = new TestPrincipal(identity);

            Csla.ApplicationContext.User = p;
            //System.Threading.Thread.CurrentPrincipal = p;
        }