public void slettBestilling_OK() { //Arrage var SessionMock = new TestControllerBuilder(); var controller = new ClearSkiesController(new AirlineLogikk(new AirlineDALStub())); SessionMock.InitializeController(controller); controller.Session["LoggetInn"] = true; //Act var result = (RedirectToRouteResult)controller.slettBestilling(0); //Assert result.AssertActionRedirect().ToAction("AdministrerBestillinger"); }