TeamMentor.UnitTests.TM_Website.TM_WebServices_Users_ExtensionMethods.login_with_Pwd C# (CSharp) Method

login_with_Pwd() public static method

public static login_with_Pwd ( this webServices, string username, string password ) : bool
webServices this
username string
password string
return bool
        public static bool login_with_Pwd(this TM_WebServices webServices, string username, string password)
        {
            try
            {
                "[TeamMentor] login as: {0}".info(username);
                webServices.Login(username, password);
                return webServices.Current_User().notNull();
            }
            catch(Exception ex)
            {
                ex.log();
            }
            return false;
        }