Exemplo n.º 1
0
        public void ThenTheUserHasIsAMemberOfTheFollowingGroups(string user, Table table)
        {
            Guid          userId = MockDatabase.GetUser(user).Id;
            List <IGroup> groups = IdentityManagementService.GetUserGroups(userId).ToList();

            Assert.AreEqual(table.Rows.Count, groups.Count);

            foreach (var row in table.Rows)
            {
                Assert.IsNotNull(groups.FirstOrDefault(o => o.Name == row["Group"]), row.ToTableString());
            }
        }