Exemple #1
0
        public async Task CheckAccount()
        {
            var akk = new ServerAccount()
            {
                Login = _account.Login, Pass = _account.Pass, Server = _account.Server
            };

            try
            {
                await _sender.CheckAuth(akk);
            }
            catch
            {
                _account.AccountStatus = akk.AccountStatus;
                _account.ServerStatus  = akk.ServerStatus;
                //throw ex;
                return;
            }
            _account.ServerStatus  = akk.ServerStatus;
            _account.AccountStatus = akk.AccountStatus;
        }
        public async System.Threading.Tasks.Task CheckAuth_RightValueAsync()
        {
            await sender.CheckAuth(account);

            Assert.AreEqual("ok", account.ServerStatus);
        }