public async Task OnGet_WhenUserIsNotLoggedIn_ReturnsRedirectToPageResult()
        {
            mockUserManager.Setup(p => p.GetUserAsync(httpContext.User)).ReturnsAsync(portFreightUsers.FirstOrDefault(x => x.Id is null));

            var result = (RedirectToPageResult)await model.OnGetAsync();

            Assert.IsNotNull(result);
            Assert.AreEqual("/Account/Logout", result.PageName);
            Assert.IsInstanceOfType(result, typeof(RedirectToPageResult));
        }