コード例 #1
0
        public void UpdateReview_WhenUpdatesWithExistingId_ReturnsOkResult()
        {
            var review = new ReviewInputModel()
            {
                Rating = 5,
            };

            var okResult = _controller.UpdateReview(1, 1, review);

            var result = Assert.IsType <OkObjectResult>(okResult);

            Assert.Equal(200, result.StatusCode);
        }