コード例 #1
0
        public async Task UpdateUserPlaylist()
        {
            var userId     = 4;
            var listId     = "5edb579918e5443984d76a12";
            var updateList = new UserPlaylist()
            {
                Name   = "不爱我就放了我",
                Public = false
            };
            var result = await Client.PutAsync <UserPlaylist, TestResult <object> >
                             ($"/api/playlist/user/update?loginUserId={userId}&id={listId}", updateList);

            // Assert
            Assert.Equal(200, result.Code);
        }