public void FlightsDeleteConfirmedValidRedirect()
        {
            RedirectToRouteResult details = controller.DeleteConfirmed(5001) as RedirectToRouteResult;

            var list = details.RouteValues.ToArray();

            //Assert
            Assert.AreEqual("Index", list[0].Value);
        }
        /// This method expects DeleteConfirmed to redirect to index if successful
        public void DeleteConfirmed_Should_Redirect_To_Index_If_Successful()
        {
            //Arrange

            //Act
            var result = sut.DeleteConfirmed(1) as RedirectToRouteResult;

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("Index", result.RouteValues["action"]);
        }