I see that the test for associating users with nested groups works great.
 However, I was attempting in a project to associate a user with two
non-related groups.

I added this test case to rhino-security and it fails.  Please tell me if
this is intended behavior or if what I'm trying to do should work.  If so I
can provide a fix.

        [Fact]
        public void CanAssociateUserWithNonRelatedGroup()
        {
            User nathan = new User();
            nathan.Name = "nathan";

            session.Save(nathan);
            authorizationRepository.CreateUsersGroup("Smiths");
            authorizationRepository.CreateUsersGroup("Bakers");

            authorizationRepository.AssociateUserWith(nathan, "Smiths");
            authorizationRepository.AssociateUserWith(nathan, "Bakers");

            session.Flush();
            session.Clear();

            UsersGroup[] groups =
authorizationRepository.GetAssociatedUsersGroupFor(nathan);
            Assert.Equal(2, groups.Length);
            Assert.Equal("Smiths", groups[0].Name);
            Assert.Equal("Bakers", groups[1].Name);
        }

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to