public void TestPostDeleteStationConfirmed() { // Arrange var controller = new RoutesController(new RouteLogic(new RouteRepositoryStub()), new StationLogic(new StationRepositoryStub())); var RouteID = 1; var StationID = 1; // ACt var result = (RedirectToRouteResult)controller.DeleteStationConfirmed(RouteID, StationID); // Assert Assert.AreEqual("", result.RouteName); Assert.AreEqual(RouteID, result.RouteValues["RouteID"]); Assert.AreEqual("Details", result.RouteValues["action"]); }