Пример #1
0
        public void GetAssociatedUsers()
        {
            using (var context = new AsynchronusTestContext(this))
            {
                IEnumerable <AssociatedUser> received = null;
                ApiException exception = null;

                bool completed = false;
                EnqueueCallback(() =>
                {
                    AuthClient.GetAssociatedUsers(new Guid("05121a2b-3289-4965-a5f4-f26affeadc63"), results =>
                    {
                        received  = results;
                        completed = true;
                    },
                                                  error =>
                    {
                        exception = error;
                        completed = true;
                    });
                });
                EnqueueConditional(() => completed);
                EnqueueCallback(() => Assert.IsNull(exception));
                EnqueueCallback(() => Assert.IsNotNull(received));
            }
        }
Пример #2
0
        public void GetAssociatedUsers()
        {
            var users = AuthClient.GetAssociatedUsers(new Guid("05121a2b-3289-4965-a5f4-f26affeadc63"));

            Assert.IsNotNull(users);
        }