Beispiel #1
0
        public void loadNavigation_LOGGET_INN()
        {
            //Arrange
            var SessionMock = new TestControllerBuilder();
            var controller  = new ClearSkiesController();

            SessionMock.InitializeController(controller);
            controller.Session["LoggetInn"] = true;

            //Act
            var actionResult = (PartialViewResult)controller.loadNavigation();

            //Assert
            Assert.AreEqual("navigationMenu", actionResult.ViewName);
        }