public async Task LagreLoggetInnIkkeOK()
        {
            // Arrange



            mockRep.Setup(k => k.LeggTilRute(It.IsAny <Rute>())).ReturnsAsync(false);



            var billettController = new BillettController(mockRep.Object, mockLog.Object);



            mockSession[_loggetInn] = _loggetInn;
            mockHttpContext.Setup(s => s.Session).Returns(mockSession);
            billettController.ControllerContext.HttpContext = mockHttpContext.Object;



            // Act
            var resultat = await billettController.LeggTilRute(It.IsAny <Rute>()) as BadRequestObjectResult;



            // Assert
            Assert.Equal((int)HttpStatusCode.BadRequest, resultat.StatusCode);
            Assert.Equal("Rute kunne ikke lagres", resultat.Value);
        }
        public async Task SjekkRute()
        {
            mockRep.Setup(k => k.LeggTilRute(It.IsAny <Rute>())).ReturnsAsync(true);



            var billettController = new BillettController(mockRep.Object, mockLog.Object);



            mockSession[_loggetInn] = _loggetInn;
            mockHttpContext.Setup(s => s.Session).Returns(mockSession);
            billettController.ControllerContext.HttpContext = mockHttpContext.Object;



            // Act
            var resultat = await billettController.LeggTilRute(It.IsAny <Rute>()) as OkObjectResult;



            // Assert
            Assert.Equal((int)HttpStatusCode.OK, resultat.StatusCode);
            Assert.Equal("Rute lagret", resultat.Value);
        }