示例#1
0
        public void AddUserReviewForPublication_WhenCalledWithExistingIds_ReturnsCreatedResult()
        {
            var review = new ReviewInputModel()
            {
                Rating = 5
            };
            var createdResult = _controller.AddUserReviewForPublication(1, 1, review);

            var result = Assert.IsType <CreatedAtRouteResult>(createdResult);

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