Beispiel #1
0
        private void TestLogoutReturnUrl(IUser user, ReadOnlyUrl loggedInUrl)
        {
            LogIn(user);
            AssertUrl(loggedInUrl);

            // Logout.

            var returnUrl = new ReadOnlyApplicationUrl(true, "~/privacy");
            var logOutUrl = LogOutUrl.AsNonReadOnly();

            logOutUrl.QueryString["returnUrl"] = returnUrl.Path;
            Get(logOutUrl);

            AssertUrl(returnUrl);
        }
Beispiel #2
0
        public void TestHttp()
        {
            var member = _memberAccountsCommand.CreateTestMember(0);

            LogIn(member);
            AssertUrl(LoggedInMemberHomeUrl);

            // Logout.

            var logOutUrl = LogOutUrl.AsNonReadOnly();

            logOutUrl.Scheme = Uri.UriSchemeHttp;
            Get(logOutUrl);

            AssertUrl(HomeUrl);
        }