public void slettReise_OK() { //Arrange var SessionMock = new TestControllerBuilder(); var controller = new ClearSkiesController(new AirlineLogikk(new AirlineDALStub())); SessionMock.InitializeController(controller); controller.Session["LoggetInn"] = true; //Act var resultat = (RedirectToRouteResult)controller.slettReise(1); //Assert resultat.AssertActionRedirect().ToAction("AdministrerReiser"); }