Authentication.Claims.Tests.AuthenticatedUserContextTests.Setup C# (CSharp) Method

Setup() private method

private Setup ( ) : void
return void
        public void Setup()
        {
            claimsIdentity = new ClaimsIdentity();
            claimsIdentity.AddClaim(new Claim(ClaimType.Permission, Permission));
            claimsIdentity.AddClaim(new Claim(ClaimType.Permission, "OtherPermission"));
            claimsIdentity.AddClaim(new Claim(ClaimType.Role, Role));
            claimsIdentity.AddClaim(new Claim(ClaimType.Role, "OtherRole"));
            claimsIdentity.AddClaim(new Claim(ClaimType.Group, Group));
            claimsIdentity.AddClaim(new Claim(ClaimType.Group, "OtherGroup"));
            sut = new AuthenticatedUserContext(claimsIdentity);
        }