public void CompleteTest()
        {
            InstallController target = null;
            // Arrange
            MockRepository mocks = new MockRepository();
            IInstallerService installerService = mocks.StrictMock<IInstallerService>();
            ActionResult actual;

            using (mocks.Record())
            {

            }

            try
            {
                target = new InstallController(installerService);
                using (mocks.Playback())
                {
                    actual = target.Complete();
                }

                ControllerTestHelper.TestForEmptyViewAndModel(actual, target);

            }
            finally
            {
                if (target != null)
                {
                    target.Dispose();
                }
            }
        }
        public void InstallControllerConstructorTest()
        {
            // Arrange
            MockRepository mocks = new MockRepository();
            IInstallerService installerService = mocks.StrictMock<IInstallerService>();
            using (mocks.Record())
            {

            }

            using (mocks.Playback())
            {
                InstallController target = new InstallController(installerService);
                target.Dispose();
            }
        }
        public void IndexTestWithUpdateNeededStatus()
        {
            InstallController target = null;
            // Arrange
            MockRepository mocks = new MockRepository();
            IInstallerService installerService = mocks.StrictMock<IInstallerService>();
            ActionResult actual;

            using (mocks.Record())
            {
                Expect.Call(installerService.GetInstallStatus(SymNetInfo.Instance)).Return(InstallStatus.UpdateNeeded);
            }

            try
            {
                target = new InstallController(installerService);
                using (mocks.Playback())
                {
                    actual = target.Index();
                }

            }
            finally
            {
                if (target != null)
                {
                    target.Dispose();
                }
            }

            ControllerTestHelper.TestForRedirection(actual, "Index", "Update", "Install");
        }
        public void IndexTestWithReadyToInstallStatus()
        {
            InstallController target = null;
            // Arrange
            MockRepository mocks = new MockRepository();
            IInstallerService installerService = mocks.StrictMock<IInstallerService>();
            ActionResult actual;

            using (mocks.Record())
            {
                Expect.Call(installerService.GetInstallStatus(SymNetInfo.Instance)).Return(InstallStatus.ReadyToInstall);
            }

            try
            {
                target = new InstallController(installerService);
                using (mocks.Playback())
                {
                    actual = target.Index();
                }
                Helpers.ControllerTestHelper.TestForEmptyViewAndModel(actual, target);
            }
            finally
            {
                if (target != null)
                {
                    target.Dispose();
                }
            }
        }