public void Step5_Should_Redirect_When_Installed_Is_True()
        {
            // Arrange
            _applicationSettings.Installed = true;

            // Act
            ActionResult result = _installController.Step5(new SettingsViewModel());

            // Assert
            RedirectToRouteResult redirectResult = result.AssertResultIs <RedirectToRouteResult>();

            redirectResult.AssertActionRouteIs("Index");
            redirectResult.AssertControllerRouteIs("Home");
        }
        public void step5_should_finalize_setup()
        {
            // Arrange
            SettingsViewModel existingModel = new SettingsViewModel();

            // Act
            ActionResult result = _installController.Step5(existingModel);

            // Assert
            ViewResult viewResult = result.AssertResultIs <ViewResult>();

            viewResult.AssertViewRendered();

            SettingsViewModel model = viewResult.ModelFromActionResult <SettingsViewModel>();

            Assert.NotNull(model, "Null model");
        }