public void AuthIdentity_GetUsersAuthentications()
        {
            TestStore store = ((TestStore)DevWebsiteDataInitializer.FillDefaultDevSet(new TestStore())).FixupReferences();

            User user = PopulateAuthData(store);
            AuthIdentityTestService service = new AuthIdentityTestService(user.Username, store);

            var lookup = service.Test_GetRoleMemberLookup(store);
            var roles = service.Test_GetUsersRolesRecursive(store, user.Username, lookup);

            var authzs = service.Test_GetUsersAuthentications(store, user.Username, roles);
        }
        public void AuthIdentity_GetUsersRolesRecursive()
        {
            TestStore store = ((TestStore)DevWebsiteDataInitializer.FillDefaultDevSet(new TestStore())).FixupReferences();

            User user = PopulateAuthData(store);
            AuthIdentityTestService service = new AuthIdentityTestService(user.Username, store);

            var lookup = service.Test_GetRoleMemberLookup(store);

            var roles = service.Test_GetUsersRolesRecursive(store, user.Username, lookup);

            Assert.AreNotEqual(store.Roles.Count(), roles.Count, "Should have gotten all the roles");
            Assert.AreEqual(2, roles.Count, "Should have gotten 2 roles");
            Assert.IsNotNull(roles.SingleOrDefault(f => f.Name == "Parent"));
            Assert.IsNotNull(roles.SingleOrDefault(f => f.Name == "Child"));
        }