示例#1
0
        public void slettKunde_OK()
        {
            //Arrange
            var SessionMock = new TestControllerBuilder();
            var controller  = new ClearSkiesController(new AirlineLogikk(new AirlineDALStub()));

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

            //Act
            var result = (RedirectToRouteResult)controller.slettKunde(0);

            //Assert
            result.AssertActionRedirect().ToAction("administrerKunder");
        }