Example #1
0
        public void UpdateFriendById_WhenUpdatedWithExistingId_ReturnsOkResult()
        {
            var friend = new FriendUpdateInputModel()
            {
                FirstName = "Lárus",
            };

            var okResult = _controller.UpdateFriendById(1, friend);

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

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