Case sensitivity, maybe?

On Mon, May 17, 2010 at 2:36 AM, Nathan Stott <[email protected]> wrote:

> Actually I noticed an error with my test code.
>
> After fixing it, this test passes fine.
>
> However, I am having a situation in production where I have a user
> associated with 2 user groups and Ican query the DB to confirm this, yet
> when I use authorizationRepository to get the groups the user is associated
> with, only 1 group is returned.
>
> If I retrieve the group by name that is not listed and look at its users,
> the user is listed.  I'm having trouble tracking down the cause.
>
>
> On Sun, May 16, 2010 at 9:28 PM, Nathan Stott <[email protected]> wrote:
>
>> 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]<rhino-tools-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rhino-tools-dev?hl=en.
>

-- 
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