public void IsGroup()
    {
        var target = ModuleOwnershipRef.Group(10);

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

        target = principal.UpdateFrom(target);
        Assert.IsTrue(target.IsAny);
        Assert.IsFalse(target.IsPerson);
        Assert.IsTrue(target.IsGroup);
        Assert.IsFalse(target.IsPersonInGroup);
        Assert.IsFalse(target.IsNone);
        Assert.AreEqual(0, target.PersonId);
        Assert.AreEqual(10, target.GroupId);
    }