public IActionResult DeleteReview(int?friendId, int?tapeId) { if (friendId == null || tapeId == null) { return(BadRequest()); } _friendReviewService.DeleteReview(friendId, tapeId); return(StatusCode(204)); }
public void DeleteReviewForFriend() { // arrange int tapeId = 1; int friendId = 1; _friendReviewRepositoryMock.Setup(method => method.DeleteReview(friendId, tapeId)); // act _friendReviewService.DeleteReview(friendId, tapeId); // assert _friendReviewRepositoryMock.Verify(x => x.DeleteReview(friendId, tapeId), Times.Once); }