public void DenyWritePerType() { Csla.ApplicationContext.User = new Csla.Security.UnauthenticatedPrincipal(); PerTypeAuthorization root = new PerTypeAuthorization(); root.Test = "test"; }
public void DenyWritePerType() { Csla.ApplicationContext.User = new System.Security.Claims.ClaimsPrincipal(); PerTypeAuthorization root = new PerTypeAuthorization(); root.Test = "test"; }
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"; }