public async Task AnonymousUserCantAccessAuthorizedPages(string url)
        {
            // Arrange
            var client = ServerFactory.CreateDefaultClient();

            // Act
            var response = await client.GetAsync(url);

            // Assert
            var location = ResponseAssert.IsRedirect(response);

            Assert.StartsWith("/Identity/Account/Login?", location.PathAndQuery);
        }
        public async Task AnonymousUserCantAccessAuthorizedPages(string url)
        {
            using (StartLog(out var loggerFactory, $"{nameof(AnonymousUserCantAccessAuthorizedPages)}_{WebUtility.UrlEncode(url)}"))
            {
                // Arrange
                var client = ServerFactory.CreateDefaultClient(loggerFactory);

                // Act
                var response = await client.GetAsync(url);

                // Assert
                var location = ResponseAssert.IsRedirect(response);
                Assert.StartsWith("/Identity/Account/Login?", location.PathAndQuery);
            }
        }