public MockPrincipalPermission(IPrincipal principal, ICommonClaim claim, bool?isAuthorized) { ID = Guid.NewGuid(); Principal = principal; PrincipalID = principal.ID; Claim = claim; ClaimID = claim.ID; IsAuthorized = isAuthorized; }
public MockRolePermission(IRole role, ICommonClaim claim, bool?isAuthorized) { ID = Guid.NewGuid(); Role = role; RoleID = role.ID; Claim = claim; ClaimID = claim.ID; IsAuthorized = isAuthorized; }