public void DeleteConfirmed_WhenIdIsLargerThanZero_RemoveIsCalled()
 {
     // Act
     controller.DeleteConfirmed(1);
     // Assert against the mock object
     fakeBookingRepository.Verify(x => x.Remove(It.IsAny <int>()));
 }
        public async void DeleteConfirmed_DeleteBooking()
        {
            var booking = BookingGenerator.Create();

            var result = await Controller.DeleteConfirmed(booking.BookingId);

            Assert.IsType <RedirectToActionResult>(result);

            var redirectedResult = result as RedirectToActionResult;

            Assert.Equal("Index", redirectedResult.ActionName);

            bookingRepository.Verify();
        }