Ejemplo n.º 1
0
        public void ChangePassword()
        {
            if (dictionary.Length == 2 || dictionary [2] == null)
            {
                Assert.Fail("Enter password in Credentials.txt");
            }
            else
            {
                string oldauthtoken = akount.Properties.authtoken;
                akount.ChangePassword("Demo@123456");

                string newauthtoken = akount.Properties.authtoken;


                akount.ChangePassword(dictionary[2]);
                Assert.AreNotEqual(newauthtoken, oldauthtoken);
            }
        }
Ejemplo n.º 2
0
        public void ChangePassword()
        {
            var paradictionary = new Dictionary <string, string>();

            paradictionary.Add("Password", "newpassword");
            MockServer.AddPostRequest("/restcomm/2012-04-24/Accounts.json/" + Sid, paradictionary, changepasswordresponse);
            string oldauthtoken = akount.Properties.auth_token;

            akount.ChangePassword("newpassword");

            string newauthtoken = akount.Properties.auth_token;

            Assert.AreNotEqual(newauthtoken, oldauthtoken);
        }