示例#1
0
        private void UpdateUser()
        {
            User _user = new User.UpdateUserBuilder(user.Id.Value, false, false).Build();

            user = smartsheet.UserResources.UpdateUser(_user);
            Assert.IsFalse(user.Admin.Value);
            Assert.IsFalse(user.LicensedSheetCreator.Value);
        }
        public virtual void TestUpdateUser()
        {
            server.setResponseBody("../../../TestSDK/resources/updateUser.json");

            User user        = new User.UpdateUserBuilder(123L, true, true).Build();
            User updatedUser = userResources.UpdateUser(user);

            Assert.AreEqual(true, updatedUser.Admin);
            Assert.AreEqual(true, updatedUser.LicensedSheetCreator);
        }