public void DeleteConfirmedTest() { var response = _controller.DeleteConfirmed("1", 1); Assert.IsNotNull(response); Assert.IsInstanceOfType(response, typeof(RedirectToActionResult)); _repository.Verify(mock => mock.Delete(It.IsAny <Patient>()), Times.Once()); _repository.Verify(mock => mock.Save(), Times.Once()); }