Пример #1
0
        public void ThenAllGroupsAreEnabled()
        {
            IEnumerable <IGroup> groups = IdentityManagementService.GetGroups();

            foreach (IGroup group in groups)
            {
                Assert.IsFalse(group.IsDisabled, group.Name);
            }
        }
Пример #2
0
        public void ThenTheFollowingGroupsExist(Table expectedGroups)
        {
            List <IGroup> groups = IdentityManagementService.GetGroups().ToList();

            Assert.AreEqual(expectedGroups.RowCount, groups.Count);
            foreach (TableRow expectedGroup in expectedGroups.Rows)
            {
                Assert.IsTrue(groups.Any(g => g.Name.Equals(expectedGroup["Name"]) && Equals(g.Description, expectedGroup["Description"]) &&
                                         Equals(g.ExternalGroupName, expectedGroup["External group"])), expectedGroup.ToTableString());
            }
        }