public void IsPersonWithClaimsPrincipalOnly() { var principal = new ClaimsPrincipal(new ClaimsIdentity(new[] { new Claim(AppClaimTypes.PersonId, "11") })); var target = principal.AsModuleOwnershipRef(); Assert.IsTrue(target.IsAny); Assert.IsTrue(target.IsPerson); Assert.IsFalse(target.IsGroup); Assert.IsFalse(target.IsPersonInGroup); Assert.IsFalse(target.IsNone); Assert.AreEqual(11, target.PersonId); Assert.AreEqual(0, target.GroupId); }