Example #1
0
        public void LogIn_Test1()
        {
            TextWriter tw = new StringWriter();

            wr = new TestWorkerRequest("/appinternals/logIn", "ticket=ST-8446-eCdNmuxCOLqAlsYUm4Ml-sso01.example.org", tw);
            wr.SetRemoteAddress("127.0.0.1");
            wr.SetQueryString("ticket=ST-8446-eCdNmuxCOLqAlsYUm4Ml-sso01.example.org");
            wr.SetCookie("ticket=ST-8446-eCdNmuxCOLqAlsYUm4Ml-sso01.example.org");
            HttpContext.Current = new HttpContext(wr);

            try
            {
                authorization.Object.LogIn();
            }
            catch (Exception ex)
            { }

        }