Exemplo n.º 1
0
        public void TestUnsuccessfulLogin()
        {
            var auth = new AwfulAuthenticateByBrowser();
            string username = "******";
            string password = "******";

            auth.Username = username;
            auth.Password = password;
            auth.Result += (o, a) =>
                {
                    Assert.AreEqual(a.Value, AwfulAuthenticateByBrowser.LoginResult.LOGIN_FAILED);
                    this.EnqueueTestComplete();
                };

            auth.LoginAsync();
        }
Exemplo n.º 2
0
        public void TestSuccessfulLogin()
        {
            var auth = new AwfulAuthenticateByBrowser();
            string username = StaticParameters.TEST_USERNAME;
            string password = StaticParameters.TEST_PASSWORD;

            auth.Username = username;
            auth.Password = password;
            auth.Result += (o, a) =>
                {
                    Assert.AreEqual(a.Value, AwfulAuthenticateByBrowser.LoginResult.LOGIN_SUCCESSFUL);
                    this.EnqueueTestComplete();
                };

            auth.LoginAsync();
        }