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); }
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); }