Exemple #1
0
        public void ThenTheGroupHasTheFollowingMembers(string group, Table expectedMembers)
        {
            List <IUserListItem> members = IdentityManagementService.GetGroupMembers(nameIdentifierPairs[group]).ToList();

            Assert.AreEqual(expectedMembers.RowCount, members.Count);
            foreach (TableRow expectedMember in expectedMembers.Rows)
            {
                Assert.IsTrue(members.Any(m => m.Name.Equals(expectedMember["User"])), expectedMember.ToTableString());
            }
        }