public void Logon(string username, string password)
        {
            Debug.WriteLine("Logon called with username: "******", password: " + password);
            this.username = username;
            this.password = password;

            this.loggedOnUser = new TestProfile(this, this.username);
        }
        public void LogonWeb(string connectIn, out string connectOut)
        {
            if (!string.IsNullOrEmpty(connectIn))
            {
                Debug.WriteLine("LogonWeb called with connectIn: " + connectIn);
            }

            if (!loggedIn)
            {
                loggedIn = true;
                throw new COMException("Authorization failed.", Convert.ToInt32(HelperMethods.OSC_E_AUTH_ERROR));
            }
            this.loggedOnUser = new TestProfile(this, this.username);
            connectOut        = "http://www.contoso.com/authorize";
        }