Пример #1
0
        public void DenyWritePerType()
        {
            Csla.ApplicationContext.User = new Csla.Security.UnauthenticatedPrincipal();
            PerTypeAuthorization root = new PerTypeAuthorization();

            root.Test = "test";
        }
Пример #2
0
        public void DenyWritePerType()
        {
            Csla.ApplicationContext.User = new System.Security.Claims.ClaimsPrincipal();
            PerTypeAuthorization root = new PerTypeAuthorization();

            root.Test = "test";
        }
Пример #3
0
        public void DenyWritePerType()
        {
            TestDIContext testDIContext = TestDIContextFactory.CreateContext(new System.Security.Claims.ClaimsPrincipal());
            IDataPortal <PerTypeAuthorization> dataPortal = testDIContext.CreateDataPortal <PerTypeAuthorization>();

            PerTypeAuthorization root = dataPortal.Create();

            root.Test = "test";
        }