private void Setup() { var myClaim = new Claim("http://myclaims/customer", "add"); var currentIdentity = new CorpIdentity("stevenh", myClaim); var principal = new ClaimsPrincipal(currentIdentity); Thread.CurrentPrincipal = principal; }
private void SetupCorpIdentity() { var currentIdentity = new CorpIdentity("stevenh", "big boss", "zurich", "developer"); var principal = new ClaimsPrincipal(currentIdentity); Thread.CurrentPrincipal = principal; }