public async Task DeleteAllConfirmed_Post_RedirectToIndex() { Mock <BusinessTripService> mock = new Mock <BusinessTripService>(); BusinessTripController controller = GetNewBusinessTripController(mock.Object, null); RedirectToRouteResult result = (await controller.DeleteAllConfirmed()) as RedirectToRouteResult; Assert.AreEqual("Index", result.RouteValues["action"]); }