public void should_not_redirect_when_installed_is_false_and_controller_is_installercontroller()
		{
			// Arrange
			_applicationSettings.Installed = false;
			InstallControllerStub installController = new InstallControllerStub(_applicationSettings, _configReaderWriter, _installationService, _databaseTester);
			ActionExecutingContext filterContext = new ActionExecutingContext();
			filterContext.Controller = installController;

			// Act
			installController.CallOnActionExecuting(filterContext);

			// Assert
			Assert.That(filterContext.Result, Is.Null);
		}
Beispiel #2
0
        public void should_not_redirect_when_installed_is_false_and_controller_is_installercontroller()
        {
            // Arrange
            _applicationSettings.Installed = false;
            InstallControllerStub  installController = new InstallControllerStub(_applicationSettings, _configReaderWriter, _installationService, _databaseTester);
            ActionExecutingContext filterContext     = new ActionExecutingContext();

            filterContext.Controller = installController;

            // Act
            installController.CallOnActionExecuting(filterContext);

            // Assert
            Assert.That(filterContext.Result, Is.Null);
        }