public async Task UpdatePlaylistShouldUpdatePlaylist() { var list = new PlayList { Id = 1 }; _mixBLMock.Setup(x => x.UpdatePlayListAsync(It.IsAny <PlayList>())).Returns(Task.FromResult(list)); var playController = new PlayListController(_mixBLMock.Object); var result = await playController.UpdatePlayListAsync(list.Id, list); Assert.IsAssignableFrom <NoContentResult>(result); _mixBLMock.Verify(x => x.UpdatePlayListAsync(list)); }