public void GetDeletedUnifiedGroup()
        {
            if (string.IsNullOrEmpty(_accessToken))
            {
                Assert.Inconclusive("Access token could not be retrieved, so skipping this test");
            }

            var results = UnifiedGroupsUtility.GetDeletedUnifiedGroup(_groupId, _accessToken);

            Assert.IsTrue(results != null && results.GroupId == _groupId);
        }
示例#2
0
        public UnifiedGroupEntity GetDeletedGroup(string accessToken)
        {
            UnifiedGroupEntity group = null;

            if (Group != null)
            {
                group = UnifiedGroupsUtility.GetDeletedUnifiedGroup(Group.GroupId, accessToken);
            }
            else if (!string.IsNullOrEmpty(GroupId))
            {
                group = UnifiedGroupsUtility.GetDeletedUnifiedGroup(GroupId, accessToken);
            }

            return(group);
        }
        public void PermanentlyDeleteUnifiedGroup()
        {
            UnifiedGroupsUtility.PermanentlyDeleteUnifiedGroup(_groupId, _accessToken);

            // The group should no longer be found in deleted groups
            try
            {
                var results = UnifiedGroupsUtility.GetDeletedUnifiedGroup(_groupId, _accessToken);
                Assert.IsFalse(results != null);
            }
            catch (Exception)
            {
                Assert.IsTrue(true);
            }
        }
        public void PermanentlyDeleteUnifiedGroup()
        {
            if (string.IsNullOrEmpty(_accessToken))
            {
                Assert.Inconclusive("Access token could not be retrieved, so skipping this test");
            }

            UnifiedGroupsUtility.PermanentlyDeleteUnifiedGroup(_groupId, _accessToken);

            // The group should no longer be found in deleted groups
            try
            {
                var results = UnifiedGroupsUtility.GetDeletedUnifiedGroup(_groupId, _accessToken);
                Assert.IsFalse(results != null);
            }
            catch (Exception)
            {
                Assert.IsTrue(true);
            }
        }
        public void GetDeletedUnifiedGroup()
        {
            var results = UnifiedGroupsUtility.GetDeletedUnifiedGroup(_groupId, _accessToken);

            Assert.IsTrue(results != null && results.GroupId == _groupId);
        }