public void Reviews_DeleteUsersBookReview_BookDoesNotExist()
        {
            // Arrange
            var repo   = new ReviewsRepository(context);
            int bookId = (context.Books.OrderByDescending(b => b.Id).FirstOrDefault()).Id;
            int userId = (context.Users.OrderByDescending(b => b.Id).FirstOrDefault()).Id;

            // Act
            repo.DeleteUsersBookReview(userId, bookId + 1);

            // Assert
            Assert.Fail("Should have thrown NotFoundException");
        }
        public void Reviews_DeleteUsersBookReview_UserAndBookAndReviewExist()
        {
            // Arrange
            var repo   = new ReviewsRepository(context);
            int bookId = (context.Books.OrderByDescending(b => b.Id).FirstOrDefault()).Id;
            int userId = (context.Users.OrderByDescending(b => b.Id).FirstOrDefault()).Id;

            // Act
            repo.DeleteUsersBookReview(userId, bookId);

            // Assert
            Assert.AreEqual(0, context.Reviews.Count());
        }
        public void Reviews_DeleteUsersBookReview_ReviewDoesNotExist()
        {
            // Arrange
            var repo   = new ReviewsRepository(context);
            int bookId = (context.Books.OrderByDescending(b => b.Id).FirstOrDefault()).Id;
            int userId = (context.Users.OrderByDescending(b => b.Id).FirstOrDefault()).Id;

            var newUser = new User {
                Name        = "Gux",
                Address     = "Rvk",
                Email       = "*****@*****.**",
                PhoneNumber = "699-6666",
                Deleted     = false
            };

            context.Users.Add(newUser);
            context.SaveChanges();

            // Act
            repo.DeleteUsersBookReview(newUser.Id, bookId);

            // Assert
            Assert.Fail("Should have thrown NotFoundException");
        }