Ejemplo n.º 1
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);
		}
Ejemplo n.º 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);
        }