public async Task PlayListController_CreatePlayList_Ok() { var db = _builder .ConfigureInMemory() .Build(); var repository = new Repository <Models.PlayList>(db); var controller = new PlayListController(repository); var newPlayList = A.New <Models.PlayList>(); var response = (await controller.PostPlayList(newPlayList)) .Result as OkObjectResult; var values = Convert.ToInt32(response.Value); values.Should().Be(newPlayList.PlaylistId); }