public void visansatte_Ok()
        {
            var mock = new Mock<ControllerContext>();

            mock.SetupGet(u => u.HttpContext.Request.IsAuthenticated).Returns(true);
            mock.SetupGet(u => u.HttpContext.User.Identity.Name).Returns("kj");

            var controller = new AdminController(new Mock<IAuth>().Object, new AdminLogikk(new ansattRepositoryStub()),
                new ProdukterLogikk(new ProduktRepositoryStub()), new KundeLogikk(new KundeRepositoryStub()));
            controller.ControllerContext = mock.Object;
            var viewResult = (ViewResult)controller.Ansatte();
               /* var list = new List<SelectListItem>();
            list.Add(new SelectListItem { Text = "visAlle", Value = "visAlle" });
            list.Add(new SelectListItem { Text = "Leder", Value = "Leder" });
            list.Add(new SelectListItem { Text = "Kundeservice", Value = "Kundeservice" });
            list.Add(new SelectListItem { Text = "LagerArbeider", Value = "LagerArbeider" });
            list.Add(new SelectListItem { Text = "Innkjøp", Value = "Innkjøp" });*/
            Assert.IsTrue(viewResult.ViewName =="");
        }
        public void visansatte_authFail()
        {
            var mock = new Mock<ControllerContext>();

            mock.SetupGet(u => u.HttpContext.Request.IsAuthenticated).Returns(false);
            mock.SetupGet(u => u.HttpContext.User.Identity.Name).Returns("");
            var controller = new AdminController(new Mock<IAuth>().Object, new AdminLogikk(new ansattRepositoryStub()),
                new ProdukterLogikk(new ProduktRepositoryStub()), new KundeLogikk(new KundeRepositoryStub()));
            controller.ControllerContext = mock.Object;
            var viewResult = (RedirectToRouteResult)controller.Ansatte();

            Assert.AreEqual("logginn", viewResult.RouteValues["Action"]); //<---view som blir vist hvis er requested-->)
            Assert.AreEqual("Admin", viewResult.RouteValues["Controller"]); //<---view som blir vist hvis er requested-->)
        }