Пример #1
0
        public Task TestUpdatePassword()
        {
            var    u    = Utils.RandomUsername();
            var    p    = Utils.RandomString(10);
            AVUser user = new AVUser()
            {
                Username = u,
                Password = p
            };

            return(user.SignUpAsync().ContinueWith(t =>
            {
                Assert.False(t.IsFaulted);
                Assert.False(t.IsCanceled);
                return user.UpdatePassword(p, Utils.RandomString(10), CancellationToken.None);
            }).ContinueWith(t =>
            {
                Assert.False(t.IsFaulted);
                Assert.False(t.IsCanceled);
            }));
        }