Beispiel #1
0
        public void ConnectSucess_knownuser()
        {
            ComosHttp m_Http = new ComosHttp();
            ComosWeb  cw     = new ComosWeb(m_Http, url);

            if (cw.Connect().Result == System.Net.HttpStatusCode.OK)
            {
                return;
            }
            Assert.Fail();
        }
Beispiel #2
0
        private ComosWeb GetComosWeb(bool login = false)
        {
            if (m_ComosWeb != null)
            {
                return(m_ComosWeb);
            }
            ComosHttp m_Http = new ComosHttp();

            m_ComosWeb = new ComosWeb(m_Http, url);
            if (m_ComosWeb.Connect("comos", "gert.denul", "45erYU&*11").Result != System.Net.HttpStatusCode.OK)
            {
                Assert.Fail();
            }
            if (login == true)
            {
                var task = m_ComosWeb.Login();
                task.Wait();
            }
            return(m_ComosWeb);
        }
Beispiel #3
0
 public async Task <System.Net.HttpStatusCode> Connect(
     string domain, string username, string password)
 {
     return(await m_ComosWebOnline.Connect(domain, username, password));
 }